我用ibase_pconnect() 连接Firebird数据库,提示:Call to undefined function ibase_pconnect(),可是,我在php.ini中已经配置了php_interbase.dll了并且也把这个dll拷贝到了windows/system32下面了,但问题依旧,请教高手给我个答案

解决方案 »

  1.   

    需要 gds32.dll 支持!
    gds32.dll 在php安装目录下你需要将php安装目录添加到系统环境变量PATH中(推荐)
    也可以将gds32.dll 拷贝到系统目录
      

  2.   

    首先,这不是我的方法。这是手册中特别声明的。你可以看手册,只是这回我替你看了
    其次,模块方式下,每次对php相关设置的改变都要重启服务。这是规则
      

  3.   

    笨方法:看phpinfo();里php到底加载的哪个位置的php.ini.
    改那个php.ini,启用php_interbase扩展。php_interbase.dll拷贝到windows/system32
    php目录下的所有dll拷贝到windows/system32重起
      

  4.   

    PHP 5.2.1/4.4.6的
    PHP Interbase扩展isc_attach_database函数有栈溢出漏洞
      

  5.   

    http://www.winet.cn/php/ref.ibase.php这个上面有比较详细的安装,配置,使用,及相关程序
      

  6.   


    你说的是重启apache还是重启服务器,目前我只能重启Apache,服务器现在有很多服务,不能随便重启
      

  7.   

    以下摘自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
      

  8.   

    我稀里糊涂的就配置好了,最后我把php下面所有dll文件和ext所有dll文件都拷贝到了system32,然后就成功了,再次感谢楼上几位的帮忙,结贴了,实在不好意思,我的分没有了,就这么多了。