简体   繁体   English

致命错误:在第3行的C:\\ xampp \\ htdocs \\ Project1 \\ connect.php中调用未定义函数oci_connect()

[英]Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\Project1\connect.php on line 3

I am trying to connect to a 9i oracle database using XAMPP Version 5.6.15. 我正在尝试使用XAMPP版本5.6.15连接到9i oracle数据库。

After a few days of struggling with this I uninstalled XAMPP and just installed PHP and Apache HTPPD. 经过几天的努力,我卸载了XAMPP并仅安装了PHP和Apache HTPPD。

Verified PHP and HTTP were working and again got the EXACT SAME ERROR. 经过验证的PHP和HTTP正常运行,并再次出现“完全相同的错误”。 So I reinstalled XAMPP The underlying issue I know is that is cant load C:\\xampp\\php\\ext\\php_oci8.dll . 所以我重新安装了XAMPP我知道的根本问题是无法加载C:\\xampp\\php\\ext\\php_oci8.dll

I am sure the correct .ini file is being picked up and the extension_dir is defined correctly and I have included the file php_oci8.dll in that directory. 我确定会拾取正确的.ini文件,并且正确定义了extension_dir,并且在该目录中包含了文件php_oci8.dll。

In desperation I downloaded the oracle instant client 10 holding all of those dlls and added them under the php directory. 无奈之下,我下载了包含所有这些dll的Oracle Instant Client 10,并将它们添加到php目录下。 This directory along with the PHP one has been added to PATH in my system variables so all required DLLs should be getting picked up. 这个目录和PHP一起已经添加到我的系统变量的PATH中,因此所有必需的DLL应该都被拾取了。

After all of this I am still getting the above error. 毕竟,我仍然遇到上述错误。 Has anyone any other ideas to try? 还有其他人可以尝试吗? Any help would be greatly appreciated - am pulling my hair out for the guts of a week on this one. 任何帮助将不胜感激-我为此花了一周的时间来拉我的头发。

Finally got to the bottom of this. 终于深入到此。 I had to go back to version 1.8.2. 我不得不回到版本1.8.2。 of XAMPP Installed that. XAMPP的安装。 This version does not even reference php_oci8_12c.dll which is just fine because who needs it if it is a 9i database you are trying to access. 这个版本甚至都没有引用php_oci8_12c.dll,这很好,因为如果您要访问的是9i数据库,谁需要它。 You need to uncomment the php_oci8.dll in php.ini. 您需要取消注释php.ini中的php_oci8.dll。 I kicked off Appache under XAMPP and got an error about not being able to load certain dlls. 我在XAMPP下启动了Appache,并收到有关无法加载某些dll的错误。 To fix this you need to install the instantclient_10_2 which you can pull from the Oracle site. 要解决此问题,您需要安装InstantClient_10_2,您可以从Oracle站点中提取它。 I dont think it matters but I installed it under the PHP directory under xampp. 我不认为这很重要,但我将其安装在xampp下的PHP目录下。 Just be sure to reference this FIRST in your PATH environment variable along with the ext directory. 只要确保在PATH环境变量以及ext目录中引用此FIRST即可。 And hopefully its viola as opposed to me pulling my hair out for a solid week to get to this point. 希望它是中提琴,而不是我将头发拉出一个坚实的一周来达到这一点。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误:在第71行的C:\\ xampp81 \\ htdocs \\ aaainc \\ db.php中调用未定义函数oci_connect() - Fatal error: Call to undefined function oci_connect() in C:\xampp81\htdocs\aaainc\db.php on line 71 致命错误:在第75行的C:\\ xampp81 \\ htdocs \\ test \\ inc \\ db.php中调用未定义函数oci_connect() - Fatal error: Call to undefined function oci_connect() in C:\xampp81\htdocs\test\inc\db.php on line 75 致命错误:调用未定义的函数 oci_connect() php 错误 - Fatal error: Call to undefined function oci_connect() php error 致命错误:调用Wamp中未定义的函数oci_connect() - Fatal error: Call to undefined function oci_connect() in Wamp 致命错误:调用未定义函数oci_connect() - Fatal error: Call to undefined function oci_connect() PHP8 + Oracle OCI8 => 致命错误:未捕获错误:调用未定义的函数 oci_connect() - PHP8 + Oracle OCI8 => Fatal error: Uncaught Error: Call to undefined function oci_connect() PHP中的Oracle连接错误。 致命错误:调用未定义函数oci_connect() - Oracle Connection Error in PHP. Fatal error: Call to undefined function oci_connect() 致命错误:调用C:\\ wamp \\ www \\ last \\ connect.php中未定义的函数sqlsrv_connect() - Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www\last\connect.php 使用XAMPP阻止调用未定义的函数oci_connect() - Stuck Call to undefined function oci_connect() using XAMPP 无法加载oci8 - >致命错误:调用未定义的函数oci_connect() - can not load oci8 -> Fatal error: Call to undefined function oci_connect()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM