Enable PHP Firebird connection

时间秒杀一切 提交于 2019-12-11 07:13:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!