Re: Postgres from PHP in Leopard

From: Richard Huxton <dev(at)archonet(dot)com>
To: Gordon <gordon(dot)mcvey(at)ntlworld(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres from PHP in Leopard
Date: 2007-12-20 15:42:21
Message-ID: 476A8D5D.8030605@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gordon 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 do a fair bit of PHP+PG on my Mac too.

> I have managed to install Postgres from http://sourceforge.net/projects/pgsqlformac/
> and can access the database on my mac with tools such as pgAdmin. I
> have also enabled the bundled Apache and PHP extensions.

Hmm - never come across that sourceforge project. I installed the
development kit from Apple and compile from source. It's not terribly
difficult.

> 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.

There's some older info here:
http://www.entropy.ch/software/macosx/postgresql/
http://developer.apple.com/internet/opensource/postgres.html

But I think you want this:
http://www.finkproject.org/

Access to all sorts of stuff, including alternative versions of apache,
php etc. Read the documentation *before* you start though so you
understand what it's doing.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2007-12-20 15:46:11 Re: Is there PHP mysql_real_escape_string for postgresql?
Previous Message Leonel Nunez 2007-12-20 15:37:03 Re: Change of the data directory on Ubuntu 7.04