RE: [PHP-DB] oracle connectivity problem

2002-01-08 Thread Stephen Abshire

It sound like you have Oracle installed on one machine and are attempting to 
connect to it from another machine. If this is the case you may need to 
install the client libraries on the machine that does not have oracle 
installed. I recently did some development for a client in Windows and 
received the same error. After I read the PHP docs 
(http://www.php.net/manual/en/ref.oci8.php) and installed the client 
libraries on the Windows machine, I was able to connect to Oracle running on 
a Sun machine.

Hope this helps...

-Original Message-
From: Rajiv Khandelwal [mailto:[EMAIL PROTECTED]]
Sent: 27 December 2001 10:59

hi,
I am facing a strange problem.
I have oracle 8.1.6 (server) installed on linux and am trying to access it 
thru PHP from a client machine (again Linux). I was successful in making 
connections to the Oracle Server through programs written in C and Perl. But 
everytime i execute some program written in PHP it throws back an error.

"Fatal error: Call to undefined function: ocilogon() in 
/usr/local/apache/htdocs/test.php "

in test.php i am calling ocilogon as:
ocilogon ("scott","tiger",$db);

I have installed PHP with oracle support. phpinfo() shows that oracle 
support is enabled and it identifies ORACLE_HOME and ORACLE_SID.


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
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] oracle connectivity problem

2002-01-08 Thread Ford, Mike [LSS]

> -Original Message-
> From: Rajiv Khandelwal [mailto:[EMAIL PROTECTED]]
> Sent: 27 December 2001 10:59
> 
> hi,
>  I am facing a strange problem.
>  I have oracle 8.1.6 (server) installed on linux and am 
> trying to access
> it thru PHP from a client machine (again Linux).
> I was successful in making connections to the Oracle Server through
> programs written in C and Perl. But everytime i execute some program
> written in PHP it throws back an error.
> 
> "Fatal error: Call to undefined function: ocilogon() in
> /usr/local/apache/htdocs/test.php "
> 
> in test.php i am calling ocilogon as:
> ocilogon ("scott","tiger",$db);
> 
> I have installed PHP with oracle support.
> phpinfo() shows that oracle support is enabled and it identifies
> ORACLE_HOME and ORACLE_SID.

Have you installed Oracle 8 support (--with-oci8), which gives you the OCI functions, 
or only the older Oracle support (--with-oracle) which gives you the ORA_ series of 
functions?

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
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]