windows - PHP 5.3.1 未在 Windows 上加载 php_oci8.dll

标签 windows oracle php

我正在尝试在 php 上加载 oracle 扩展,但出现错误:

Warning: PHP Startup: Unable to load dynamic library 'D:\Program Files\xampp\php\ext\php_oci8.dll' - The specified procedure could not be found. in Unknown on line 0

到目前为止我做了:

  1. 包含在 windows 路径上的 oracle 即时客户端的完整路径
  2. 在 php.ini 上,extension_dir 指向正确的位置
  3. 在 php.ini extension=php_oci8.dll 上没问题
  4. 重新启动了 apache,但没有任何效果。

最佳答案

通过将文件 orannzsbb11.dll 、 oci.dll 和 oraociei11.dll 复制到 c:\windows\system32 解决了问题

关于windows - PHP 5.3.1 未在 Windows 上加载 php_oci8.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12820429/

相关文章:

c++ - 将 unicode(带 BOM)字符串转换为 ASCII std::string

python - 使用单个 os.mkdir 函数生成超过 1 个目录 (Python)

windows - Windows 上的 Git : Force use of OpenSSH

php - 为什么在 Eloquent 模型中调用方法时得到 'Non-static method should not be called statically'?

PHP 表单不显示数据

php - 如何在 drupal 中创建 pdf 文件?

c# - Windows 上的蓝牙 SPP 服务器

sql - varchar2(n BYTE | CHAR)默认-> CHAR或BYTE

java - 在java中获取第一个记录表单数据库?

sql - 用 Oracle 中的两个表更新 SQL