Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fatal error: Call to undefined function oci_connect()

654522Aug 11 2008 — edited Aug 15 2008
Hi every1,

I am new to the forums, and i really need help here basically i keep getting the following error message:
Fatal error: Call to undefined function oci_connect() in C:\wamp\www\film_explosion\include\db_connection.php on line 6

I have checked the file and there is nothing wrong as you can see:

<?php
session_start();

//if ($conn = oci_connect('scott', 'tiger', 'Development'))
//For Localhost with local oracle db
if ($conn = oci_connect('scott', 'tiger', '//localhost/xe'))
{
//print 'Successfully connected to Oracle Database!';
}
else
{
$errmsg = oci_error();
print 'Oracle connection failed, Please check username, password and service name in oci_connect: ' . $errmsg['message'];
}
?>


Also i have made the neccessary changes in the php.ini files to communicate with oracle etc. I just dont understand this error it appears to not to under the "oci_connect()" function this is really strange.

Can anybody help me please?


Thanks all.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2008
Added on Aug 11 2008
12 comments
99,768 views