pg_connect fail

wxdqz

New Member
I'm having a problem connecting to my postgresql server. When I call pg_connect() the php interperter will exit without any warning. Does anyone have any ideas?

Here is a sample script

<?php
echo "Before";
$db = @pg_connect("host=raid port=5432 dbname=rsdb user=changed password=noneofyourbusiness");
echo "After";

if ($db=="")
{
echo "no connection";
}
?>

and the output is


X-Powered-By: PHP/4.0.6
Content-type: text/html

Before

I'm running the script from the command line, so apache isn't causing the problem.

Thanks,

Rob



NO CARRIER
 
Back
Top