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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php