Solved

Call to undefined function oci_connect()

Posted on 2013-11-12
3
13,545 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 110

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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