Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Call to undefined function oci_connect()

Posted on 2013-11-12
3
Medium Priority
?
16,393 Views
Last Modified: 2013-11-17
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.
0
Comment
Question by:rmartes
  • 2
3 Comments
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39642049
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
0
 

Accepted Solution

by:
rmartes earned 0 total points
ID: 39643517
I got it to work. I had to install Oracle Client 11g R2 32-Bit even though I have a 64-Bit machine then restart.

http://it4beginners.wordpress.com/2011/11/14/setting-up-php-on-windows-to-connect-to-oracle/

Thanks all for the effort.
0
 

Author Closing Comment

by:rmartes
ID: 39654344
I found the solution myself.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question