title: Enabling PostgreSQL support in PHP on Mac OS X
body: <p>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. </p>
  
  <p>I've gone into my <code>php.ini</code> file and added </p>
  
  <pre><code>extension=pgsql.so
  </code></pre>
  
  <p>But, I'm met with the following error. </p>
  
  <blockquote>
    <p>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<br>
    PHP Fatal error:  Call to undefined function pg_connect() in... (blah file here)</p>
  </blockquote>
  
  <p>When running <code>phpinfo()</code>, I see nothing about PostgreSQL, so what is my issue here?</p>