downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

IBM (PDO)> <Firebird/Interbase (PDO)
Last updated: Fri, 20 Nov 2009

view this page in

PDO_FIREBIRD DSN

(PECL PDO_FIREBIRD >= 0.1.0)

PDO_FIREBIRD DSNConnecting to Firebird and Interbase databases

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.

Examples

Example #1 PDO_FIREBIRD DSN examples

The following example shows a PDO_FIREBIRD DSN for connecting to Firebird and Interbase databases:

firebird:dbname=DATABASE.GDE



add a note add a note User Contributed Notes
PDO_FIREBIRD DSN
nelson at integrasoftware dot com dot br
18-Nov-2007 11:24
my Firebird connection example:

$str_conn = "firebird:dbname=C:\db\banco.gdb;host=localhost";
    
$dbh = new PDO($str_conn, "SYSDBA", "masterkey");

IBM (PDO)> <Firebird/Interbase (PDO)
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites