X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B88CBD1B509 for ; Mon, 15 Sep 2003 12:39:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 52446-07 for ; Mon, 15 Sep 2003 09:39:10 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id 27234D1B4F5 for ; Mon, 15 Sep 2003 09:39:07 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h8FCcwsn020993 for ; Mon, 15 Sep 2003 12:38:59 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h8FCPPJO017405 for pgsql-php@postgresql.org; Mon, 15 Sep 2003 12:25:25 GMT Message-ID: <3f65aeb2$0$28898$afc38c87@news.optusnet.com.au> From: James Ward Subject: Re: pg_connect(): ...Too many open links (0) X-Newsgroups: comp.databases.postgresql.interfaces.php Date: Mon, 15 Sep 2003 22:21:06 +1000 References: <3f65ae28$0$28898$afc38c87@news.optusnet.com.au> User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Lines: 30 To: pgsql-php@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/58 X-Sequence-Number: 2335 And for info the command I'm using is: $postgres = pg_connect("host=localhost port=5432 dbname=hector user=hector"); James James Ward wrote: > Hi all, > I've searched high and low on the web and the group for the following > error: > > pg_connect(): Cannot create new link. Too many open links (0) > > I have checked phpinfo and it says max_links is unlimited, and so is > max_persistent. > > It's got to be something obvious - but I can't see it. > > How can I have too many links open if this is the first one!?! > > I'm running postgres 7.3.4 and php 4.3.3. > > I can access the database using pgAdmin - so I don't think it isn't a > permissions problem. I've got tcp/ip access enabled. > > All help appreciated, > James