For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2005 > PHP CLI OCILOGON - undefined function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP CLI OCILOGON - undefined function
Sigrid Krug

2005-09-21, 7:55 am

Hi!

I scanned the web today and found people with the same problems, but no
solutions.
The problem is: I try to connect an Oracle-DB with a
PHP-Command-Line-script.
It works fine, when I use: ora_logon("scott@orcl","tiger")
But it doesn't with: OCILogon("scott", "tiger", "orcl")
I just get: "Fatal error: Call to undefined function: ocilogon() "
But via web-browser the scripts work!!!!

phpinfo.php: PHP Version 4.2.3
Configure Command: './configure' '--with-oracle=/opt/oracle/product/92'
'--with-apache=../apache_1.3.27'
(here OCI8 is NOT mentioned, but all the scripts using OCI8 work fine,
except on command line.....)

oci8
OCI8 Support enabled
Revision $Revision: 1.169.2.3 $
Oracle Version 9.0
Compile-time ORACLE_HOME /opt/oracle/product/92
Libraries Used

Apache/1.3.27
SuSe Linux Enterprise Server 8, I guess.

I hope for help,

Sigrid
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com