Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 103EA2E0031 for ; Sun, 18 May 2008 17:21:22 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 20650-10 for ; Sun, 18 May 2008 17:21:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by developer.postgresql.org (Postfix) with ESMTP id 23EB22E0039 for ; Sun, 18 May 2008 17:21:18 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 3so984825ywj.73 for ; Sun, 18 May 2008 13:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject:date:mime-version:content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole; bh=TAnX24ZkVg4rA5rwnkvwd0pWcRq3ZI74nivj84VQmi4=; b=tdVPVHqpfFEiY9rGf1hx5CF+dciKcZqQ1NGm70VUEuk3XSwaivnJ0hBvmWdMz/Y/kahemWKu2vFCsW0pKa6YqXxvzAETjxYoOfPf4jrH6jc19NNi/s5zXOrDAE0SnDwqbZ3tvhsYo/RpgWXST2nhNmd+ZCkiUVqlBUSP4gP638g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Ey7oW6c66WC0K2yvICEUBaZUsY/YWD3CIRaK9lvbM6yNJicrMIsA1ytv4lQCLgaBWuF9J9IY+ytPN1XLekulQTtZzNvdWwkIzzW3S1feMv8I9wzs5yNMgPceQOgwdl0q7SsPjiH99M081gsulLgY/QffZNWOdmZEFuLcFPa2xHE= Received: by 10.150.191.15 with SMTP id o15mr5613205ybf.54.1211142078114; Sun, 18 May 2008 13:21:18 -0700 (PDT) Received: from osvaldox ( [200.122.23.17]) by mx.google.com with ESMTPS id 6sm6626708ywi.1.2008.05.18.13.21.16 (version=SSLv3 cipher=RC4-MD5); Sun, 18 May 2008 13:21:17 -0700 (PDT) Message-ID: <001201c8b924$bad26150$e295fea9@osvaldox> From: "LonLinux" To: Subject: pg_connect error Date: Sun, 18 May 2008 17:21:15 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C8B90B.93C020C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200805/3 X-Sequence-Number: 3845 This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C8B90B.93C020C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 =3D pg_connect("host=3DSQLMACHINE port=3D5432 password=3Dxxxx = user=3Dpostgres dbname=3Dcompraventa1"); if (!$db_conn): ?>

Failed connecting to postgres database

Hello, I have this problem with a = connection to=20 postgres server (running in a win2000 server).
When I connect with pgAdmin to the same = postgres=20 server works ok, but when I try to connect from php5 the connection=20 fails.
Can help me?
Thanks.
 
$db_conn =3D = pg_connect("host=3DSQLMACHINE port=3D5432=20 password=3Dxxxx user=3Dpostgres dbname=3Dcompraventa1");
if = (!$db_conn):=20 ?>
    <H1>Failed connecting to postgres = database=20 <? echo "compraventa1" ?></H1> = <?
   =20 exit;
endif;
 
Ovax
------=_NextPart_000_000F_01C8B90B.93C020C0--