Re: PHP CLI OCILOGON - undefined function
| From: | Christopher Jones | Date: | Tue, 27 Sep 2005 05:09:43 +0000 |
| Subject: | Re: PHP CLI OCILOGON - undefined function | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40383@lists.php.net to get a copy of this message | ||
Use the phpinfo() function to check that the same php is being used in
Apache and on the command line.
Make sure LD_LIBRARY_PATH contains $ORACLE_HOME/lib
Relink with --with-oci8
Another suggestion is upgrade PHP to 4.4 and manually get the new
refactored oci8 drivers. After you upgrade to something like:
pear install oci8-beta
to get the new drivers.
Chris
Sigrid Krug wrote:
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