[英]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.