RE: [PHP] new connection with pg_pconnect

From: Date: Thu, 14 Oct 2004 22:08:20 +0000
Subject: RE: [PHP] new connection with pg_pconnect
Groups: php.general 
Request: Send a blank email to php-general+get-199540@lists.php.net to get a copy of this message
[snip] I then have the page main.php which has <?php global $sys_dbhost,$sys_dbuser,$sys_dbpasswd; $dbconn = pg_connect("user=$sys_dbuser dbname=bisprojects host=$sys_dbhost password=$sys_dbpasswd"); echo '->'.$dbconn.'<-'; ?> the scripts just dies whenever I include the pg_connect function... if I change echo '->'.$dbconn.'<-'; to echo '->==='.$dbconn.'====<-'; I'll still see -><- on my page if I remove the pg_connect function, I'll see ->=======<-; Basically, no changes to the page take effect when I have the pg_connect function in place... it just dies or something... [/snip] Hmmm, strange. I used your code, exactly as it is above (but with my username, password, db and server info) and it works fine. Check your error logs and see if there's anything showing up there and let us know what you find. Pablo

« previous php.general (#199540) next »