Received: from ummail.um.edu.my ([202.185.112.205]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0N6aml23106 for ; Wed, 23 Jan 2002 01:36:49 -0500 (EST) (envelope-from apache@ummail.um.edu.my) Received: (from apache@localhost) by ummail.um.edu.my (8.11.2/8.11.2) id g0N6fxv05847; Wed, 23 Jan 2002 14:41:59 +0800 Date: Wed, 23 Jan 2002 14:41:59 +0800 Message-Id: <200201230641.g0N6fxv05847@ummail.um.edu.my> To: Subject: unable to connect to PostgreSQL server X-Mailer: UMMAIL 0.8 X-Originating-IP: 202.185.111.104 Content-Type: text/plain; charset=iso-8859-1 From: Faudzy Sulaiman X-Archive-Number: 200201/60 X-Sequence-Number: 865 I'm getting an error message : Warning: Unable to connect to PostgreSQL server: PQconnectDB() -- couldn't read postmaster response: errno=104 Connection reset by peer in /var/www/html/test1.php on line 24 my PHP script is : if($myconn = pg_connect("dbname=mydb host=localhost port=443 user=faudzy ")) { echo "Connection to PostgreSQL server 'localhost' successful
\n"; } how do I fix it ? thanks. ------------------------------ http://www.um.edu.my