(PECL PDO_FIREBIRD >= 0.1.0)
PDO_FIREBIRD DSN — Connecting to Firebird and Interbase databases
The PDO_FIREBIRD Data Source Name (DSN) is composed of the following elements:
The DSN prefix is firebird:
.
The name of the database.
The character set.
The SQL role name.
Beispiel #1 PDO_FIREBIRD DSN examples
The following example shows a PDO_FIREBIRD DSN for connecting to Firebird and Interbase databases:
firebird:dbname=DATABASE.GDE
my Firebird connection example:
$str_conn = "firebird:dbname=C:\db\banco.gdb;host=localhost";
$dbh = new PDO($str_conn, "SYSDBA", "masterkey");