Hello,
I am trying to connect to my postgres database using php, I can connect using pgAdmin that works fine. but once I put the information in a php script it wont connect. It doesnt even give me an error except for the one I specified.
I am running on Fedora Core 6
I have the php-pgsql exetension installed also:
<?php
// Connecting, selecting database
$dbconn = pg_connect("host=localhost port=5432 dbname=dbname user=username password=password")
or die('Could not connect: ' . pg_last_error());
?>
if anyone can shed some light onto this I would really appreciate it. Thanks.