X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id F113E9DCB8F for ; Fri, 3 Feb 2006 16:15:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21618-09 for ; Fri, 3 Feb 2006 16:15:57 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tetra.ehpg.net (tetra2.ehpg.net [65.19.161.8]) by postgresql.org (Postfix) with ESMTP id 979669DCB10 for ; Fri, 3 Feb 2006 16:15:53 -0400 (AST) Received: from dsl081-087-203.lax1.dsl.speakeasy.net ([64.81.87.203]) by tetra.ehpg.net with esmtpa (Exim 4.54) id 1F57LU-0008UE-LQ; Fri, 03 Feb 2006 12:15:53 -0800 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.2) X-Priority: 3 (Normal) Content-Type: multipart/alternative; boundary=Apple-Mail-7--370721846 Message-Id: Cc: From: "Gavin M. Roy" Subject: Re: PDO & PHP 5.1.2 Date: Fri, 3 Feb 2006 12:15:51 -0800 To: "John Mohr" X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.053 required=5 tests=[AWL=0.052, HTML_MESSAGE=0.001] X-Spam-Score: 0.053 X-Spam-Level: X-Archive-Number: 200602/12 X-Sequence-Number: 3428 --Apple-Mail-7--370721846 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Did you check phpinfo to make sure the pgsql driver is there? You generally have to do --with-pdo-pgsql (I think is the switch). Gavin On Feb 3, 2006, at 12:08 PM, John Mohr wrote: > I'm trying to use the PDO for postgres under PHP 5.1.2. I'm getting > a "cannot find driver" on the connect. Format for DSN is: > > "pgsql:host=localhost port=5432 dbname=xxx" with the user and pw > passed as separate parameters. This worked under 5.0.x. > > Under 5.0.x I had the separately compile and install pdo_pgsql > driver. Under 5.1.2 it appears that it is getting it automagically. > Does anyone have any suggestions? > > Gavin M. Roy 800 Pound Gorilla gmr@ehpg.net --Apple-Mail-7--370721846 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Did you check phpinfo to make = sure the pgsql driver is there?=A0 You generally have to do = --with-pdo-pgsql (I think is the switch).

Gavin


On Feb 3, = 2006, at 12:08 PM, John Mohr wrote:

=
I'm trying to use the PDO for postgres under PHP 5.1.2. I'm = getting a "cannot find driver" on the connect. Format for DSN = is:
=A0
"pgsql:host=3Dlocalhost port=3D5432 dbname=3Dxxx" with the = user and pw passed as separate parameters. This worked under = 5.0.x.
=A0
Under 5.0.x = I had the separately compile and install pdo_pgsql driver. Under 5.1.2 = it appears that it is getting it automagically. Does anyone have any = suggestions?
=A0
=A0

=
Gavin M. Roy
800 Pound Gorilla

=

= --Apple-Mail-7--370721846--