问题
I have to create PHP web service with Firebird db
. This is the first time I configure connection with this db and I cant get it right.
I followed every instructions from php manual site, copied neccesry dll files to win/syste32
folder etc. and it's not working.
I dont understand this part:
Use --with-pdo-firebird[=DIR]
to install the PDO Firebird extension, where the optional [=DIR]
is the Firebird base install directory.
$ ./configure --with-pdo-firebird
Where should I run this?
回答1:
These instructions only apply to building PHP from source.
On Windows, you should find that a php_pdo_firebird.dll
file is included in the installation package in the ext
directory, all that is required is to uncomment/add the following line in php.ini:
extension=php_pdo_firebird.dll
You can then check that the driver is enabled in phpinfo()
, php -i
or with PDO::getAvailableDrivers()
.
来源:https://stackoverflow.com/questions/23735252/enable-php-firebird-connection