Thursday, November 17, 2011

PostgreSQL - Fatal error: Call to undefined function pg_connect() - Solved

If anyone using PostgreSQL may encounter Fatal error: Call to undefined function pg_connect() initially. This is because the PostgreSQL module has not been initialized properly. I will tell you the steps for setting up PostgreSQL module in xampp

Steps
  1. Open php.ini 
  2. Find ;extension=php_pgsql.dll and replace the initial semi colon
  3. Find ;extension=php_pdo_pgsql.dll and replace the initial semi colon 
  4. Save the file
  5. Restart apache

Done !!
Share, if it helps you...
Post a Comment

Popular Posts