RE: [PHP-DB] Connection to Oracle8i

2001-08-16 Thread Rankin, Randy

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  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).""; 
exit; 
} 

OCILogoff ($connection); 

%> 

Hope that helps, 

Randy Rankin
Texarkana, Texas

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 3:45 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Connection to Oracle8i

2001-08-15 Thread rouvas

You have to compile PHP with Oracle option first and then try connecting
to any Oracle backend.
If you already have done that, you should use the 'oci' family of calls
instead of the 'oracle' ones, unless you are trying to access an Oracle
older than version 8. In your mail you state that you use OCI. Maybe
that's the reason of the err msg.
-Stathis.

On Wed, 15 Aug 2001 [EMAIL PROTECTED] wrote:

> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]