Link to home
Start Free TrialLog in
Avatar of rmartes
rmartes

asked on

Call to undefined function oci_connect()

Hi experts,

I am getting the following error when trying to connect to my Oracle Database via PHP using OCI8:

 Call to undefined function oci_connect()

Here is what I have tried:
- uncommented "extension=php_oci8_11g.dll" and restarted XAMPP server.
- listed "C:\app\Administrator\product\11.2.0\client_1\bin" first in my environment variables and restarted server.
- made sure php_oci8_11g.dll existed in C:\xampp\php\ext.
- oci8 is not listed in my phpinfo().
- php log: PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_11g.dll' - The specified procedure could not be found.

Here is my environment:
- Windows Server 2008 R2 x64
- Oracle Client 11g R2 (successfully connects to my Oracle db via SQL Plus)
- XAMPP 1.8.3 (PHP 5.5.3)

What could I be missing?

Thank you in advance.
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Have you followed all of these instructions carefully?  And it may be necessary to restart everything after the installation and configuration.
http://php.net/manual/en/oci8.requirements.php
http://php.net/manual/en/oci8.installation.php
http://php.net/manual/en/oci8.test.php
http://php.net/manual/en/oci8.configuration.php
ASKER CERTIFIED SOLUTION
Avatar of rmartes
rmartes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmartes
rmartes

ASKER

I found the solution myself.