PHP and Postgresql on Windows

Started by Nonamealmost 21 years ago3 messagesgeneral
Jump to latest
#1Noname
Typing80wpm@aol.com

What would I need to do to make PHP, installed on my desktop, talk to Postgresql. I have several CDS with WAMP installs (Windows Apache Mysgl PHP). Would I use some special driver to allow PHP to connect to Postgresql? I am going to search on google as soon as I post, but just curious if someone has a word of wisdom. Thanks

#2David Roussel
pgsql-performance@diroussel.xsmail.com
In reply to: Noname (#1)
Re: PHP and Postgresql on Windows

Try PEAR DB.
http://pear.php.net/package/DB

It's a database abstraction layer, which means that you can change DB
later, with less hasle.

Have a look at how phpPgAdmin works. Download the source and have a
look.
http://phppgadmin.sourceforge.net/

On 22 Apr 2005, at 20:04, typing80wpm@aol.com wrote:

Show quoted text

What would I need to do to make PHP, installed on my desktop, talk to
Postgresql.  I have several CDS with WAMP installs (Windows Apache
Mysgl PHP).   Would I use some special driver to allow PHP to connect
to Postgresql?  I am going to search on google as soon as I post, but
just curious if someone has a word of wisdom. Thanks

#3Hannes Dorbath
light@theendofthetunnel.de
In reply to: David Roussel (#2)
Re: PHP and Postgresql on Windows

On 23.04.2005 00:03, David Roussel wrote:

Try PEAR DB.
http://pear.php.net/package/DB

It's a database abstraction layer, which means that you can change DB
later, with less hasle.

http://www.powerpostgresql.com/Downloads/database_depends_public.swf :)

I really dislike db abstraction layers and PEAR::DB being one of the
worst of all ;p

Just look at the ugly code like the LIMIT emulation for DBMS that don't
support it native. If you want to use the limited feature set provided
by PEAR::DB there is little point in using PostgreSQL at all. Just pick
a stupid storage engine like MySQL or SQLite and go on ;)