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
Convert Latin1 Characters on a Utf8 Table into Utf8
How to Sort a Multidimensional Array by One of the Fields of the Inner Array in PHP
Laravel - Session Store Not Set on Request
How to Prevent the "Confirm Form Resubmission" Dialog
Get Difference Between Associative Rows of Two 2-Dimensional Arrays
Warning: Cannot Modify Header Information - Headers Already Sent by Error
Safely Catch a 'Allowed Memory Size Exhausted' Error in PHP
Upload Video Files Via PHP and Save Them in Appropriate Folder and Have a Database Entry
How to Escape Only Single Quotes
Composer Error: "PHP Extension Fileinfo Is Missing from Your System"
Regexp to Add Attribute in Any Xml Tags
How to Use PHP Namespaces With Autoload