启用PHP Firebird连接 [英] Enable PHP Firebird connection
问题描述
我必须使用 Firebird db
创建PHP Web服务。这是我第一次配置与此数据库的连接,但无法正确连接。
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.
我按照php手册站点上的所有说明进行操作,将neccesry dll文件复制到了 win / syste32
文件夹等,它不起作用。
I followed every instructions from php manual site, copied neccesry dll files to win/syste32
folder etc. and it's not working.
我不理解这一部分:
Use --with-pdo-firebird[=DIR]
安装PDO Firebird扩展,其中可选的 [= DIR]
是Firebird的基本安装目录。
to install the PDO Firebird extension, where the optional [=DIR]
is the Firebird base install directory.
$ ./configure --with-pdo-firebird
该在哪里运行?
推荐答案
这些说明仅适用于从源代码构建PHP。
These instructions only apply to building PHP from source.
在Windows上,您应该发现 php_pdo_firebird.dll
文件包含在安装软件包中ext
目录,只需取消注释/在php.ini中添加以下行:
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
然后您可以在 phpinfo( )
, php -i
或使用 PDO :: getAvailableDrivers()
。
You can then check that the driver is enabled in phpinfo()
, php -i
or with PDO::getAvailableDrivers()
.
这篇关于启用PHP Firebird连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!