Firebird PDO Driver (PDO_FIREBIRD)
PDO_FIREBIRD is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Firebird database.
Intro
PDO_FIREBIRD is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Firebird database.
Configure Constants
PDO_FIREBIRD DSNConnecting to Firebird databasesDescription The PDO_FIREBIRD Data Source Name (DSN) is composed of the following elements: DSN prefixThe DSN prefix is firebird:.dbnameThe name of the database.charsetThe character set.roleThe SQL role name.dialectThe dialect of the database; either 1 or 3. If not specified, the dialect defaults to 3. Available as of PHP 7.4.0.Examples PDO_FIREBIRD DSN example with pathThe following example shows a PDO_FIREBIRD DSN for connecting to Firebird databases: firebird:dbname=/path/to/DATABASE.FDBPDO_FIREBIRD DSN example with port and pathThe following example shows a PDO_FIREBIRD DSN for connecting to a Firebird database using hostname port and path: firebird:dbname=hostname/port:/path/to/DATABASE.FDBPDO_FIREBIRD DSN example with localhost and path to employee.fdb on Debian systemThe following example shows a PDO_FIREBIRD DSN for connecting to a Firebird database employee.fdb using localhost: firebird:dbname=localhost:/var/lib/firebird/2.5/data/employee.fdbPDO_FIREBIRD DSN to connect to a dialect 1 databaseThe 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.firebird:dbname=localhost:/var/lib/firebird/2.5/data/test.fdb;charset=utf-8;dialect=1