PHP Doku:: Connecting to Firebird and Interbase databases - ref.pdo-firebird.connection.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAbstraktionsebenenPHP Data ObjectsPDO TreiberFirebird/Interbase Functions (PDO_FIREBIRD)PDO_FIREBIRD DSN

Ein Service von Reinhard Neidl - Webprogrammierung.

Firebird/Interbase Functions (PDO_FIREBIRD)

<<Firebird/Interbase Functions (PDO_FIREBIRD)

IBM Functions (PDO_IBM)>>

PDO_FIREBIRD DSN

(PECL PDO_FIREBIRD >= 0.1.0)

PDO_FIREBIRD DSNConnecting to Firebird and Interbase databases

Beschreibung

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.

Beispiele

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


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
nelson at integrasoftware dot com dot br
19.11.2007 0:24
my Firebird connection example:

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



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)