Click here to get back home

PDO driver for PostgreSQL in WAMP Server

 HomeNewsGroups | Search

get this group's latest topics as an RSS feed  comp.lang.php - PHP programming language discussions

Subject Author Date
PDO driver for PostgreSQL in WAMP Server Jivanmukta 06-08-2009
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Jivanmukta on June 8, 2009, 12:30 am
I need to use PDO and PostgreSQL. I use WAMPSERVER Version 2.0, Apache
Version 2.2.11, PHP Version 5.2.9-2.
I uncommented (in php.ini) line
 extension=php_pdo_pgsql.dll
I have such file in ext/.
extension=php_pdo.dll I had already enabled.
My phpinfo returns
 PDO drivers   mysql, sqlite
I mean it doesn't tell anything about pgsql.
(I rebooted my computer.)
Please help.

Posted by Jerry Stuckle on June 8, 2009, 5:32 am
Jivanmukta wrote:


Do you have the Postgres client libraries installed and available to the
web server (i.e. in your PATH variable)?  Did you enable the Postgres
extension (php_pgsql.dll)?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Posted by Jivanmukta on June 8, 2009, 7:28 am


I don't have Postgres in my PATH because installer didn't add it. But
psql and pgAdmin work fine so I think I have libraries working.



I have extension=3Dphp_pgsql.dll in my php.ini, but I don't see it in
phpinfo.

Posted by Jerry Stuckle on June 8, 2009, 7:37 am
Jivanmukta wrote:


Just because pgAdmin works doesn't mean things are set up properly.  If
the libraries are not accessible to the web server process, PHP can't
load them.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Posted by Jerry Stuckle on June 8, 2009, 4:08 pm
Jivanmukta wrote:


One other thing - ensure the php.ini you changed is the one listed in
phpinfo().  You may have more than one.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

If you were  Registered and logged in, you could reply and use other advanced thread options
  • Subject
  • Date

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

1-Script XML SitemapXML Sitemap
Privacy Policy