Home » Open Source » Programming Interfaces » Fatal error: Call to undefined function oci_connect()
Fatal error: Call to undefined function oci_connect() [message #340176] Mon, 11 August 2008 15:35 Go to next message
Tuffy1985
Messages: 1
Registered: August 2008
Junior Member
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.
Re: Fatal error: Call to undefined function oci_connect() [message #340178 is a reply to message #340176] Mon, 11 August 2008 16:19 Go to previous message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
http://www.orafaq.com/forum/t/88153/0/
Please read & follow posting guidelines as stated in URL above

>I have checked the file and there is nothing wrong as you can see:
As long as everyone disregards the actual ERROR

I suspect the problem involves the (ab)use of localhost.

It might help if you posted both listener.ora & tnsnames.ora files.
Previous Topic: SQLDescribeCol, SQLColAttribute fail for XML column
Next Topic: Recover from JDBC failed connection
Goto Forum:
  


Current Time: Tue Nov 26 20:13:26 CST 2024