oracle and php

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
niceguy_reddy
Forum Newbie
Posts: 7
Joined: Fri Feb 04, 2005 9:01 am

oracle and php

Post by niceguy_reddy »

Hello,

I have php working with apache on linux. I have my oracle database on another machine with windows NT. How can i configure my php on linux machine to connect with oracle on the windows NT machine. When I run the connect statement it says

Fatal error: Call to undefined function: ora_logon() in /usr/share/pear/includes/drivers/adodb-oracle.inc.php on line 90.

What should I do to solve this problem.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I believe that error message means PHP has been compiled without Oracle support. Read the instructions and comments here: http://uk.php.net/manual/en/ref.oracle.php
TheOracle
Forum Commoner
Posts: 64
Joined: Mon Nov 22, 2004 4:56 am
Location: Bedford, UK

Post by TheOracle »

Also ensure that you have an Oracle client installed on your webserver, and that the TNSNAMES file has the correct connection information within it.
Post Reply