X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1C086D1D255 for ; Wed, 28 Jan 2004 09:29:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 92320-05 for ; Wed, 28 Jan 2004 05:28:31 -0400 (AST) Received: from mandata.com (unknown [213.239.197.238]) by svr1.postgresql.org (Postfix) with ESMTP id 88DF9D1C95E for ; Wed, 28 Jan 2004 05:28:28 -0400 (AST) Received: from vertrieb (p508B44C9.dip0.t-ipconnect.de [80.139.68.201]) by mandata.com (8.12.8/8.12.8) with ESMTP id i0S9Qk8S000725 for ; Wed, 28 Jan 2004 10:26:46 +0100 From: =?iso-8859-1?Q?Johannes_Alf=E4nger?= To: Subject: PHP and PostgreSQL: Cannot create new link. Too many open links (0) Date: Wed, 28 Jan 2004 10:30:04 +0100 Organization: IT Wing GmbH Message-ID: <006301c3e581$501262f0$0c00000a@mandata.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=RCVD_IN_NJABL X-Spam-Level: X-Archive-Number: 200401/26 X-Sequence-Number: 2542 Hi All! After working with PHP and MySQL and Firebird quite a while I need to install PostgreSQL. After installation I made a new build of PHP to support PostgreSQL. I looked over the ini files and re-started Apache. With psql I can connect like: "psql -h localhost ...". But not any chancen seen with PHP. I even just made a small script with just two echo lines and a pg_pconnect() / pg_connect(). This is the error Message I get: "Warning: pg_pconnect(): Cannot create new link. Too many open links (0). in /www/test.php on line 5". I get this message no matter what connection string I use. Even if I leave it totally blank or put some nonsense in, I get the same error. Any hint appreciated - Thanks in advance! Johannes Configuration: Red Hat 9 PHP Version 4.3.4 Apache 2.0.48 PostgreSQL 7.3.4 PostgreSQL libpq 7.3.4 pg_hba.conf: local all all trust host all all 127.0.0.1 255.255.255.255 trust