我有下一行註釋掉(在我的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