pg_connect error

"LonLinux" <[email protected]>
Newsgroups gmane.comp.db.postgresql.php
Message-ID <001201c8b924$bad26150$e295fea9@osvaldox>
Hello, I have this problem with a connection to postgres server (running in a win2000 server).
When I connect with pgAdmin to the same postgres server works ok, but when I try to connect from php5 the connection fails.
Can help me?
Thanks.

$db_conn = pg_connect("host=SQLMACHINE port=5432 password=xxxx user=postgres dbname=compraventa1");
if (!$db_conn): ?>
    <H1>Failed connecting to postgres database <? echo "compraventa1" ?></H1> <?
    exit;
endif;


Ovax
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.