From: LonLinux <longlinux@gmail.com>
To: pgsql-php@postgresql.org
Subject: pg_connect error
Date: Sun, 18 May 2008 17:21:15 -0300
Message-ID: <001201c8b924$bad26150$e295fea9@osvaldox> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: longlinux@gmail.com
Subject: Re: pg_connect error
In-Reply-To: <001201c8b924$bad26150$e295fea9@osvaldox>
References: <001201c8b924$bad26150$e295fea9@osvaldox>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox