Enabling PostgreSQL support in PHP on Mac OS X
Posted
by
Jordan Scales
on Stack Overflow
See other posts from Stack Overflow
or by Jordan Scales
Published on 2011-07-05T19:59:23Z
Indexed on
2012/11/08
11:03 UTC
Read the original article
Hit count: 409
php
|postgresql
I'm having a terribly difficult time getting the command "pg_connect()" to work properly on my Mac. I'm currently writing a PHP script (to be executed from console) to read a PostgreSQL database and email a report.
I've gone into my php.ini file and added
extension=pgsql.so
But, I'm met with the following error.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.so, 9): image not found in Unknown on line 0
PHP Fatal error: Call to undefined function pg_connect() in... (blah file here)
When running phpinfo(), I see nothing about PostgreSQL, so what is my issue here?
© Stack Overflow or respective owner