pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin M. Roy <gmr@ehpg.net>
To: John Mohr <jtmohr@healthconresources.com>
Cc: pgsql-php@postgresql.org
Subject: Re: PDO & PHP 5.1.2
Date: Fri, 3 Feb 2006 12:15:51 -0800
Message-ID: <D8F1E3B1-B347-43B7-A1F1-B699D0778DC1@ehpg.net> (raw)
In-Reply-To: <IHEBIKJHMMKHJKLKCDHLEEKEFIAA.jtmohr@healthconresources.com>
References: <IHEBIKJHMMKHJKLKCDHLEEKEFIAA.jtmohr@healthconresources.com>

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

view thread (2+ messages)

Message-ID: <D8F1E3B1-B347-43B7-A1F1-B699D0778DC1@ehpg.net>
Permalink:  ../D8F1E3B1-B347-43B7-A1F1-B699D0778DC1@ehpg.net/
Also on:    postgresql.org/message-id/D8F1E3B1-B347-43B7-A1F1-B699D0778DC1@ehpg.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: gmr@ehpg.net, jtmohr@healthconresources.com
  Subject: Re: PDO & PHP 5.1.2
  In-Reply-To: <D8F1E3B1-B347-43B7-A1F1-B699D0778DC1@ehpg.net>
  References: <IHEBIKJHMMKHJKLKCDHLEEKEFIAA.jtmohr@healthconresources.com> <D8F1E3B1-B347-43B7-A1F1-B699D0778DC1@ehpg.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox