PHP/PearDB works on commandline but not via http....

From: Date: Wed, 18 Aug 2004 19:53:25 +0000
Subject: PHP/PearDB works on commandline but not via http....
Groups: php.general 
Request: Send a blank email to php-general+get-194184@lists.php.net to get a copy of this message
Hello, I have an interesting problem with PostgreSQL via PearDB and PHP 4.3.3 . I have a php page that opens a remote connection to a Postgres database, performs a query, lists the results and then closes the connection. If I run the php from the command line the connection and query work fine. Php dumps a nice web page with all the data that I am asking for. If I serve the same php page via apache from the same machine, php fails to open the database connection and thus the page fails to fill out. PearDB is installed and working since if(DB::iserror($db)) detects the error. Anyone have any ideas? Thanks, Peter

« previous php.general (#194184) next »