我用ibase_pconnect() 连接Firebird数据库,提示:Call to undefined function ibase_pconnect(),可是,我在php.ini中已经配置了php_interbase.dll了并且也把这个dll拷贝到了windows/system32下面了,但问题依旧,请教高手给我个答案
以下摘自PHP手册: Note: Note to Win32 Users In order for this extension to work, there are DLL files that must be available to the Windows system PATH. For information on how to do this, see the FAQ entitled "How do I add my PHP directory to the PATH on Windows". Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the system's PATH), this is not recommended. This extension requires the following files to be in the PATH: gds32.dll In case you installed the InterBase database server on the same machine PHP is running on, you will have this DLL already. Therefore you don't need to worry because gds32.dll will already be in the PATH. 你需要将gds32.dll放在system path包含的路径目录中,比如system32下面,或者添加gds32.dll的目录到系统路径中。当然你要确认的是gds32.dll和你的InterBase database的版本兼容。 手册上的意思是如果你的InterBase数据库和PHP安装在同一个服务器上,那么你不需要担心gds32.dll的问题,如果不是,你需要从InterBase数据库的安装程序中找出gds32.dll
gds32.dll 在php安装目录下你需要将php安装目录添加到系统环境变量PATH中(推荐)
也可以将gds32.dll 拷贝到系统目录
其次,模块方式下,每次对php相关设置的改变都要重启服务。这是规则
改那个php.ini,启用php_interbase扩展。php_interbase.dll拷贝到windows/system32
php目录下的所有dll拷贝到windows/system32重起
PHP Interbase扩展isc_attach_database函数有栈溢出漏洞
你说的是重启apache还是重启服务器,目前我只能重启Apache,服务器现在有很多服务,不能随便重启
Note: Note to Win32 Users
In order for this extension to work, there are DLL files that must be available to the Windows system PATH. For information on how to do this, see the FAQ entitled "How do I add my PHP directory to the PATH on Windows". Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the system's PATH), this is not recommended. This extension requires the following files to be in the PATH: gds32.dll
In case you installed the InterBase database server on the same machine PHP is running on, you will have this DLL already. Therefore you don't need to worry because gds32.dll will already be in the PATH. 你需要将gds32.dll放在system path包含的路径目录中,比如system32下面,或者添加gds32.dll的目录到系统路径中。当然你要确认的是gds32.dll和你的InterBase database的版本兼容。
手册上的意思是如果你的InterBase数据库和PHP安装在同一个服务器上,那么你不需要担心gds32.dll的问题,如果不是,你需要从InterBase数据库的安装程序中找出gds32.dll