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...

2 comments:

yga said...

I met this problem,and I'm trying to check all connection types in pg-sql,but those things are right and i tried many times to clear this,after that i found ur post and try to make these changes,really wonderful u r,it's now working fine,Thanku so much,keep blogging,
Have a nice day

Aravind NC said...

Oh yga, that's great. Thanks for driving by.

Popular Posts