If you found the following error Call to undefined function pg_connect()
You need to configure the Postgres database in the following manner.
1. Download and install Postgres databse
2. Add php_pgsql and php_pdo_pgsql extensions in the WAMP
(click the wamp icon php > php extenstions)
3. Add the php path in the windows PATH environment variable
How to add windows environment varibale:
1 . go to My computer > proprieties > Advance settings > Environment Variables
2. Select Path variable and click edit
3. go php installed folder and copy the path (C:\wamp\bin\php\php5.3.5)
4. add ';' semi colon in the of the values and paste the copied php path.
Now restart the all services in WAMP server and check. The
You need to configure the Postgres database in the following manner.
1. Download and install Postgres databse
2. Add php_pgsql and php_pdo_pgsql extensions in the WAMP
(click the wamp icon php > php extenstions)
3. Add the php path in the windows PATH environment variable
How to add windows environment varibale:
1 . go to My computer > proprieties > Advance settings > Environment Variables
2. Select Path variable and click edit
3. go php installed folder and copy the path (C:\wamp\bin\php\php5.3.5)
4. add ';' semi colon in the of the values and paste the copied php path.
Now restart the all services in WAMP server and check. The
Sign up here with your email