Page 1 of 1

Fatal error: Call to undefined function oci_connect()

Posted: Fri Aug 18, 2006 12:33 am
by Bhagya
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Dear Friends      

I got this error.

pl help this problem.

Code: Select all

$db ="(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = localhost)
(PORT = 1512)
)
(CONNECT_DATA = (SID = orcl))
)";
$conn = oci_connect('scott', 'tiger', $db);

that is the code.

this is the error i got.

Fatal error: Call to undefined function oci_connect() in C:\Program Files\Apache Group\Apache2\htdocs\web\info.php on line 51

i checked the php dll files. in ext folder. i put all the dependacies files.

pl help me .

thanks :roll:
Bhagya


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Fri Aug 18, 2006 7:52 am
by Ambush Commander
Did you load the extension in php.ini?

Posted: Fri Aug 18, 2006 6:21 pm
by RobertGonzalez
And do you habe the appropriate client APIs? I think that might have something to do what that error also, at least I recall something like that when hitting Oracle.