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

search for in the

IBM (PDO)> <Firebird/Interbase (PDO)
Last updated: Fri, 22 Aug 2008

view this page in

PDO_FIREBIRD DSN

(No version information available, might be only in CVS)

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: .

DataSource

The hostname on which the database server resides.

Port

The port number for the server on which the database is running.

Database

The name of the database.

User

The name of the user that will connect to the database.

Password

The password for the user.

Examples

Example #1 PDO_FIREBIRD DSN examples

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

firebird:User=john;Password=mypass;Database=DATABASE.GDE;DataSource=localhost;Port=3050



add a note add a note User Contributed Notes
PDO_FIREBIRD DSN
nelson at integrasoftware dot com dot br
19-Nov-2007 12: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, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites