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