Fatal error: Call to undefined function oci_connect() in XAMPP

Hello i am trying to connect to a remote Oracle 11g database from my local system. When i am trying to connect i am getting the following error.

“Fatal error: Call to undefined function oci_connect()”

I’ve gone through the online resources regarding uncommenting the dll in php.ini file and also i’ve tried to copy some dll files from the oralce instant client and place them in the apache bin folder but no use at all.

After making the above changes i still don’t find information OCI8 in phpinfo();

Configure Command cscript /nologo configure.js “–enable-snapshot-build” “–disable-isapi” “–enable-debug-pack” “–without-mssql” “–without-pdo-mssql” “–without-pi3web” “–with-pdo-oci=C:\php-sdk\oracle\x86\instantclient10\sdk,shared” “–with-oci8=C:\php-sdk\oracle\x86\instantclient10\sdk,shared” “–with-oci8-11g=C:\php-sdk\oracle\x86\instantclient11\sdk,shared” “–enable-object-out-dir=…/obj/” “–enable-com-dotnet=shared” “–with-mcrypt=static” “–disable-static-analyze” “–with-pgo”

If we check the above code it is showing C:\php-sdk\oracle\x86\ but i don’t have that folder on my system.

Need some valuable input in solving the above issue asap.

did you stop and start the apache component after making the change? XAMPP does not dynamically load components.

Hi Lion,

Its working now. The main mistake what i did was instead of editing the config file, i’ve been editing INI-Production and INI-Development.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.