How to configure and use PDO for database access on Linux

This guide aims to provide a quite complete overview of PDO, guiding the reader step by step from the establishment of a connection to the database, to the choice of the most appropriate fetch mode, showing how to create prepared statements and describing the possible error modes.