Call to Undefined Function Oci_Connect()

How to fix error Uncaught Error: Call to undefined function oci_connect() in wamp server?

I had the same issue but with mysqli_connect()

I removed and did autoremove the webserver and php and reinstalled them again, and it worked.

Fatal error: Call to undefined function oci_connect() in wamp server 3.0 with oracle 10g running on windows 10

I was able to resolve the issue by installing wamp 2.5 for 32 bit on windows 10 machine. It works fine with oracle 10g

Call to undefined function oci_connect, php_oci8_11g.dll , windows 10, php5.6.24

You are getting startup errors for the OCI8 extension indicating that you are using an unsupported dll for your php version. You need to use the correct one, which - for PHP 5.6.x - is one of these:

  • http://windows.php.net/downloads/pecl/releases/oci8/2.0.8/

You need to take the one that matches your architecture (x86 or x64), compiler (vc 9, 11, 14) and thread-safe (ts) or non-thread-safe (nts) php version, e.g. if you are running a thread-safe PHP 5.6.24 compiled with vc11 on an x86, you'd use

php_oci8-2.0.8-5.6-ts-vc11-x86.zip
-------- ----- --- -- ---- --- ---
^ ^ ^ ^ ^ ^ ^
| | | | | | \_____ extension
| | | | | \_________ architecture
| | | | \______________ compiler
| | | \_________________ thread-safety mode
| | \_____________________ php version
| \___________________________ extension version
\____________________________________ extension name

If there is no download matching your PHP, then it does not exist and you need to compile it yourself. More info at http://windows.php.net

On a side note: in addition to the above, you can only use one oci extension at a time. You got both (php_oci8.dll and php_oci8_11g.dll). Make sure to remove the one you don't need.



Related Topics



Leave a reply



Submit