Skip site navigation (1) Skip section navigation (2)

Re: Postgres from PHP in Leopard

From: Steve Atkins <steve(at)blighty(dot)com>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres from PHP in Leopard
Date: 2007-12-24 18:03:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Dec 20, 2007, at 7:35 AM, Gordon wrote:

> On Dec 19, 11:32 am, Gordon <gordon(dot)mc(dot)(dot)(dot)(at)ntlworld(dot)com> wrote:
>> I'm a web developer who does a lot of work in PHP.  The back end
>> database we use is bases on Postgres.  I am trying to set my new
>> MacBook Pro up as a development system.
>> I have managed to install Postgres from
>> and can access the database on my mac with tools such as pgAdmin.  I
>> have also enabled the bundled Apache and PHP extensions.
>> However, the problem is that I can't get PHP to talk to Postgres.
>> Running phpinfo () on the built in PHP shows that database support
>> extends as MySql, Mysqli and SQLite extensions, and SQLite drivers  
>> for
>> PDO.  What I really need is a Postgres extension for maintaining  
>> older
>> code and a Postgres PDO driver for new code in development.
>> When setting up a similar dev system on Windows it was relatively
>> simple to set this all up.  The extensions for PHP were provided
>> in .dll files that you just had to include in the php.ini file.  This
>> doesn't seem to be the case with the MacOS bundled PHP.
>> Is it possible to download .so files (I believe that's what the MacOS
>> equivalent to .dll files are) for the drivers and include them from
>> the php.ini file like on the Windows box?  Or is there something else
>> I'm meant to be doing?
> Anyone?

It sounds like a PHP problem, not a Postgresql problem. You're
more likely to get help with it if you ask on a PHP mailing list, I


In response to


pgsql-general by date

Next:From: Henrique PantarottoDate: 2007-12-24 18:10:45
Subject: Re: how to alter an enum type
Previous:From: Laurent BirtzDate: 2007-12-24 18:03:15
Subject: Retrying transactions in serializable isolation level

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group