douzi1991 2015-11-06 00:29
浏览 169

Window 7,PHP,无法加载动态库'C:\ PHP \ ext \ php_oci8.dll'

I installed PHP in window 7, running simple PHP without issue. when I want to connect oracle db 11g XE, using $conn = oci_connect ($user, $pawd, 'localhost/XE'); I get the following errors:

Unable to load dynamic library 'C:\PHP\ext\php_oci8.dll' ...
Unable to load dynamic library 'C:\PHP\ext\php_oci8_11g.dll' ...
PHP Fatal error: Call to undefined function oci_connect (..);

I checked that C:\PHP\ext\php_oci8.dll is there and I changed the following in php.ini file.

extension_dir = "C:\PHP\exe";
extension=php_bz2.dll;
extension=php_curl.dll;
extension=php_oci8.dll;
extension=php_oci8_11g.dll;

what is the issue behind this?

  • 写回答

1条回答 默认 最新

  • dongyoufo5672 2017-03-30 16:41
    关注

    try to copy the files orannzsbb11.dll , oci.dll and oraociei11.dll to c:\windows\system32

    评论

报告相同问题?

悬赏问题

  • ¥15 c++ gmssl sm2验签demo
  • ¥15 关于模的完全剩余系(关键词-数学方法)
  • ¥15 有没有人懂这个博图程序怎么写,还要跟SFB连接,真的不会,求帮助
  • ¥15 关于移动机器人坐标计算
  • ¥30 模拟电路 logisim
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音