X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B10805351A for ; Sat, 30 Apr 2005 00:48:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46970-09 for ; Sat, 30 Apr 2005 03:47:56 +0000 (GMT) Received: from guinness.cs.stevens.edu (guinness.cs.stevens-tech.edu [155.246.89.8]) by svr1.postgresql.org (Postfix) with ESMTP id E57DB5334B for ; Sat, 30 Apr 2005 00:47:55 -0300 (ADT) Received: from pink-elephant.cs.stevens.edu (pink-elephant.cs.stevens-tech.edu [155.246.81.117]) by guinness.cs.stevens.edu (Postfix) with ESMTP id DF226141885; Fri, 29 Apr 2005 23:47:48 -0400 (EDT) Received: by pink-elephant.cs.stevens.edu (Postfix, from userid 4405) id 85D2A1EF0F0; Fri, 29 Apr 2005 23:47:48 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pink-elephant.cs.stevens.edu (Postfix) with ESMTP id 4FE501EF0AD; Fri, 29 Apr 2005 23:47:48 -0400 (EDT) Date: Fri, 29 Apr 2005 23:47:48 -0400 (EDT) From: Yasir Malik X-X-Sender: ymalik@pink-elephant.cs.stevens-tech.edu To: Mauro Bertoli Cc: pgsql-sql@postgresql.org Subject: Re: PHP postgres connections In-Reply-To: <20050429163134.69632.qmail@web25605.mail.ukl.yahoo.com> Message-ID: References: <20050429163134.69632.qmail@web25605.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/412 X-Sequence-Number: 21305 > Hi, > I need to connect to 2 differents Postgres 8.0.0 > databases located in the same machine using the same > PHP script with an "db wrapper object" instance > (pg_Connect)... simply a PHP page with contemporarily > 2 database connections... > I don't think this is the right place to ask this, but there's an example on php.net for using the pg_connect(): I don't know if that answers your question. > Can I use however persistent connections ? > pg_pconnect() works the same way. Regards, Yasir