Re: different behaviour with CLI and Apache PHP with database connection

From: Date: Mon, 27 Aug 2007 01:28:27 +0000
Subject: Re: different behaviour with CLI and Apache PHP with database connection
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-43947@lists.php.net to get a copy of this message
Jason Cartledge wrote:
Hello, I have a problem connecting to an Oracle XE database. Here is my code and the output. jason@home:/var/www/test cat testoci.php
        getMessage();
           }
        ?>
jason@home:/var/www/test jason@home:/var/www/test php testoci.php Logon OK When I navigate to http://localhost/test/testoci.php however I see "DB Error: connect failed" My /etc/php5/cli/php.ini and my /etc/php5/apache2/php.ini have the extension=oci8.so line in them. When I view the information from phpinfo() for the cli and apache2 execution, it says (this one printed from the cli version)
text emails don't have a right/left column (please don't send us html emails either) - but there would be something different between the two. Or - are you running the same file? Add: echo 'I am here ' . dirname(__FILE__) . '<br/>'; to the top of your script and make sure it's exactly the same file - if you see it in one version and not the other, that will be your problem.. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#43947) next »