Adding Postgres to PHP installed with XAMPP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bazianm
Forum Newbie
Posts: 5
Joined: Thu Oct 19, 2006 8:06 pm

Adding Postgres to PHP installed with XAMPP

Post by bazianm »

Hi,

I hope this is in the proper forum...

I am kind of new to PHP and I use windows. I found and have used XAMPP quite succesfully in the past.

I have to review a few applications that require PostGres and they won't work (even though I downloaded and installed PostGres). I discovered that the PHP installed under XAMPP does not support PostGRES and it told me to recompile PHP with the --With Postgres option.

I would like to keep XAMPP because it is so easy but I cannot find any way to get PHP to support PostGres.

Does anyone have any suggestions?

Thank you all in advance for any possible assistance you can offer...
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

All you have to do is uncomment the Postgres dll in the php.ini file. I seem to remember the name of the dll is fairly obvious.
If this doesn't work, you may need to also check your environment path settings.
bazianm
Forum Newbie
Posts: 5
Joined: Thu Oct 19, 2006 8:06 pm

Post by bazianm »

That did it. Thanks!
Post Reply