Fatal error: Call to undefined function oci_connect()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bhagya
Forum Newbie
Posts: 1
Joined: Fri Aug 18, 2006 12:30 am

Fatal error: Call to undefined function oci_connect()

Post 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]
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Did you load the extension in php.ini?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply