简体   繁体   English

致命错误:调用Wamp中未定义的函数oci_connect()

[英]Fatal error: Call to undefined function oci_connect() in Wamp

There are similar topics in here but the solutions did not fix my problem. 这里有类似的主题,但是解决方案无法解决我的问题。

My OS is Windows 7-64 bit 我的操作系统是Windows 7-64位

I use Wampserver 2.5-64 bit 我使用Wampserver 2.5-64位

I downloaded instantclient_12_1 64 bit and put it into the D:/ directory 我下载了64位的Instantclient_12_1,并将其放入D:/目录

I added the PATH which shows the directory of the instant client.(To the system) 我添加了显示即时客户端目录的PATH。(对于系统)

I delete ";" 我删除“;” characters in php.ini file(I am using 11g oracle environment) php.ini文件中的字符(我正在使用11g oracle环境)

;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client

I can see OCI definitions when I look at the phpinfo() in localhost 当我查看localhost中的phpinfo()时,可以看到OCI定义

I restarted the pc after I made changes 进行更改后,我重新启动了计算机

I restarted the wampserver after I made changes 进行更改后,我重新启动了wampserver

I tried many ways and advices to come up with the problem but they did not fix the problem 我尝试了很多方法和建议来解决问题,但是它们并没有解决问题

At the end of the 3 day, I found my fault. 3天结束时,我发现了自己的错。 When I describe PATH in the "Environment Variables" menu, I add the "PATH" to "User Variables" part, not to "System Variables" part. 当我在“环境变量”菜单中描述PATH时,我将“ PATH”添加到“用户变量”部分,而不是“系统变量”部分。 The error was that simple and it costs me 3 day, pay attention! 错误很简单,花了我3天的时间,注意!

暂无
暂无

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

相关问题 WAMP服务器由于致命错误而停止工作:调用未定义函数oci_connect() - WAMP server stopped working due to Fatal error: Call to undefined function oci_connect() 致命错误:调用未定义的函数 oci_connect() php 错误 - Fatal error: Call to undefined function oci_connect() php error 致命错误:调用未定义函数oci_connect() - Fatal error: Call to undefined function oci_connect() 致命错误:在Windows 10上运行的Oracle 10g中,在Wamp Server 3.0中调用未定义函数oci_connect() - Fatal error: Call to undefined function oci_connect() in wamp server 3.0 with oracle 10g running on windows 10 PHP8 + Oracle OCI8 => 致命错误:未捕获错误:调用未定义的函数 oci_connect() - PHP8 + Oracle OCI8 => Fatal error: Uncaught Error: Call to undefined function oci_connect() 无法加载oci8 - >致命错误:调用未定义的函数oci_connect() - can not load oci8 -> Fatal error: Call to undefined function oci_connect() 如何修复 wamp 服务器中的错误“未捕获的错误:调用未定义的 function oci_connect()”? - How to fix error “Uncaught Error: Call to undefined function oci_connect()” in wamp server? PHP中的Oracle连接错误。 致命错误:调用未定义函数oci_connect() - Oracle Connection Error in PHP. Fatal error: Call to undefined function oci_connect() 调用未定义函数 oci_connect() - Call to undefined function oci_connect() 致命错误:在第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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM