Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by postgresql.org (Postfix) with ESMTP id 947BB475473 for ; Sun, 24 Mar 2002 07:30:09 -0500 (EST) Received: from eumel.yoo.net (p508589A7.dip.t-dialin.net [80.133.137.167]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id NAA14476 for ; Sun, 24 Mar 2002 13:30:05 +0100 (MET) Received: by eumel.yoo.net (Postfix on SuSE Linux 7.2 (i386), from userid 500) id 56BDD1262C; Sun, 24 Mar 2002 13:41:55 +0100 (CET) Date: Sun, 24 Mar 2002 13:41:55 +0100 From: Thorsten Haude To: PostgreSQL PHP ML Subject: Unknown Host in pg_connect() Message-ID: <20020324124155.GH981@eumel.yoo.net> Mail-Followup-To: PostgreSQL PHP ML Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i X-Warning: Email may contain unsmilyfied humor and/or satire. Keywords: Drogen =?iso-8859-15?Q?f=FCr_den_Bundeskan?= =?iso-8859-15?Q?zler_w=E4ren_eine_unpopul=E4re?= Politik Organization: Ministry of Information, Department of Information Retrieval X-Archive-Number: 200203/42 X-Sequence-Number: 1011 Hi, I'm trying to connect to PostgreSQL using pg_connect: $dbh = pg_connect("host=localhost, dbname=inventory, user=inventoryUser, password=secret"); However, I get an unknow host for localhost: - - - Schnipp - - - Warning: Unable to connect to PostgreSQL server: connectDBStart() -- unknown hostname: localhost - - - Schnapp - - - gethostbyname() has no problems to resolve localhost. This is certainly an oversight on my part, but I couldn't find anything in the books or in the FAQ. tia, Thorsten -- Death to all fanatics!