Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: Firebird/Interbase 関数 (PDO_FIREBIRD) - Manual
[go: Go Back, main page]

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

search for in the

PDO_FIREBIRD DSN" width="11" height="7"/> <ibase_wait_event
Last updated: Thu, 31 May 2007

view this page in

XLIII. Firebird/Interbase 関数 (PDO_FIREBIRD)

導入

警告

この拡張モジュールは、 実験的 なものです。この拡張モジュールの動作・ 関数名・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 このモジュールは自己責任で使用してください。

PDO_FIREBIRD は、PHP から Firebird および Interbase データベースへのアクセスを可能にするための PHP Data Objects (PDO) インターフェース を実装したドライバです。

目次

PDO_FIREBIRD DSN — Firebird および Interbase データベースに接続する


add a note add a note User Contributed Notes
Firebird/Interbase 関数 (PDO_FIREBIRD)
mark-php at vectrex dot org dot uk
03-Jun-2007 07:15
If you have a database alias on the server "localhost" called "test.fdb", you can do:

$conn = new PDO("firebird:dbname=localhost:test.fdb",
                'SYSDBA','letmein');

Note that as of the time of writing, the Firebird driver doesn't correctly throw an exception on connection error

http://bugs.php.net/bug.php?id=41522
Darren
08-Mar-2006 10:18
After much trial and error i found out you should use the following to connect to a firebird database:
<?php
  $db
= new PDO ("firebird:dbname=localhost:C:\\path\\to\\database\\MyDatabase.FDB", "username", "password");
?>
NOTE: in the 1st part of the connection string there can be NO spaces else you will get NULL.
The string provided on this site does not work and will give no error only NULL.
thomas at last-it dot de
04-Feb-2006 10:52
if youre dsn syntax is wrong, see ritsaert's comment, there maybe no errormessage!
ritsaert at continuit dot nl
19-Dec-2005 11:43
The connection string for a firebird PDO connection is different than described above. It is something like:

$DB = new PDO("firebird:dbname=T:\\Klimreg.GDB", "SYSDBA", "masterkey");

after dbname= the default connection string for Interbase and Firebird databases is used as presented to either gds32.dll or fbclient.dll.

 
show source | credits | sitemap | contact | advertising | mirror sites