我有下一行注释掉(在我的php.ini):致命错误:调用未定义的函数oci_connect()
extension=php_oracle.dll
extension=php_oci8.dll
我下载了该文件instantclient-basiclite-nt-11.2.0.2.0.zip
并解压缩,并把该驱动器d .. 。
我使用Windows XP
我设置环境变量是这样的:
LD_LIBRARY_PATH C:\instantclient_11_2:$LD_LIBRARY_PATH
ORACLE_HOME C:\instantclient_11_2
但是,当我执行oci_connect()
功能,我看到这个错误:
Fatal error: Call to undefined function oci_connect() in ...
,我发现在erroeLog文件这个警告:
[29-Dec-2011 00:36:39] PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0
[29-Dec-2011 00:36:39] PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_oracle.dll' - The specified module could not be found.
什么消息做CLI版本或Apache输出?还有什么日志文件或系统日志thingy说? – mario 2011-12-26 13:06:24
这应该有助于上述错误! [链接](http://stackoverflow.com/a/39770392/3973543) – Batman 2016-09-29 13:56:14