my Firebird connection example:
$str_conn = "firebird:dbname=C:\db\banco.gdb;host=localhost";
$dbh = new PDO($str_conn, "SYSDBA", "masterkey");
PDO_FIREBIRD DSN
(PECL PDO_FIREBIRD >= 0.1.0)
PDO_FIREBIRD DSN — Connecting to Firebird and Interbase databases
Descrição
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.
Exemplos
Exemplo #1 PDO_FIREBIRD DSN examples
The following example shows a PDO_FIREBIRD DSN for connecting to Firebird and Interbase databases:
firebird:dbname=DATABASE.GDE
PDO_FIREBIRD DSN
nelson at integrasoftware dot com dot br
18-Nov-2007 09:24
18-Nov-2007 09:24
