Firebird Functions (PDO_FIREBIRD) Firebird (PDO)
&reftitle.intro; PDO_FIREBIRD is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Firebird database.
&reference.pdo-firebird.configure; &reference.pdo-firebird.constants;
PDO_FIREBIRD DSN Connecting to Firebird databases &reftitle.description; The PDO_FIREBIRD Data Source Name (DSN) is composed of the following elements: DSN prefix The DSN prefix is firebird:. dbname The name of the database. charset The character set. role The SQL role name. dialect The dialect of the database; either 1 or 3. If not specified, the dialect defaults to 3. Available as of PHP 7.4.0. &reftitle.examples; PDO_FIREBIRD DSN example with path The following example shows a PDO_FIREBIRD DSN for connecting to Firebird databases: PDO_FIREBIRD DSN example with port and path The following example shows a PDO_FIREBIRD DSN for connecting to a Firebird database using hostname port and path: PDO_FIREBIRD DSN example with localhost and path to employee.fdb on Debian system The following example shows a PDO_FIREBIRD DSN for connecting to a Firebird database employee.fdb using localhost: PDO_FIREBIRD DSN to connect to a dialect 1 database The following example shows a PDO_FIREBIRD DSN for connecting to a Firebird database test.fdb which has been created using dialect 1. This is only supported as of PHP 7.4.0.