RE: [PHP-DB] Connection to Oracle8i

From: Date: Thu, 16 Aug 2001 13:24:26 +0000
Subject: RE: [PHP-DB] Connection to Oracle8i
Groups: php.db 
Request: Send a blank email to php-db+get-11437@lists.php.net to get a copy of this message
Rafael, I am assuming you can connect to your Oracle server from your client (using net8 for example). Did you recompile PHP with Oracle OCI support on your web server? Run <?phpinfo()?> and see if there is a section on Oracle OCI. If not, that may be at least part of your problem. Remember that Oracle and OCI8 support for PHP are different. You can compile PHP with one or both. Can you post the section of code with regards to line 40 in your oracle.php3 file. That might help too. I am not familiar with the oracle_connect() function you are trying to call. For your reference, here is an example of a connect script that I run using OCI calls: <% $connection = OCILogon ("user","pass","sid"); if ($connection == false) {echo OCIError($connection)."<BR>"; exit; } OCILogoff ($connection); %> Hope that helps, Randy Rankin Texarkana, Texas -----Original Message----- From: rafael.gibrail@apta.aptabrasil.com [mailto:rafael.gibrail@apta.aptabrasil.com] Sent: Wednesday, August 15, 2001 3:45 PM To: php-db@lists.php.net Subject: [PHP-DB] Connection to Oracle8i I have a server runs Oracle. And my Station is Linux and i run client for Oracle in it, with the variables of ORACLE_HOME, ORACLE_SID and other is in the bash_profile of my user. Then i change de httpd.conf to apache runs with my users and group. I use PHP4 in a REDHAT 7.1. My problem is whem i put the connection in the PHP script use OCI.they not find the command. The apache send me the following error: Fatal error: Call to undefined function: oracle_connect() in /var/www/html/teste/oracle.php3 on line 4 I nead to include any class in my script. I look the manual on php.net, but it can´t help me. if someone has a tutorial of the connection of PHP with Oracle, please, send me. Sorry, my english, i´m from Brazil. Thank´s Rafael -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#11437) next »