I want to connect to PostgreSQL, Im using wamp 64 bit.
I have here
- Apache 2.4.2
- PHP 5.4.3
- Mysql 5.5.24
I also uncomment in php.ini the php_pgsql and php_pdo_pgsql. but i can't connect , It gives me error like this :
Error suppression ignored for ( ! ) Fatal error: Call to undefined function pg_connect()
Is there anybody know the solution regarding on my problem. I just need it badly.
Thank you .
;extension=php_pgsql.dll
and remove the semicolon at the beginning;extension=php_pdo_pgsql.dll
and remove the semicolon at the beginningHope this helps
In case any of that doesnt work, try this in your httpd.conf file under apache...
configure the path to php.ini
PHPIniDir "c:/wamp/bin/php/php5.5.12"
Copy
libpq.dll
from php folder (ex.:C:\wamp\bin\php\php5.5.12
) to apache bin folder (ex.:C:\wamp\bin\apache\apache2.4.9\bin
) then restart apache and be happy!i Solve my problem in putting a LoadFile in httpd.conf
LoadFile "location\libpq.dll";
First i uncomment the extension=php_pgsql.dll and extension=php_pdo_pgsql.dll then i put the LoadFile in httpd.conf then restart Apache and Wamp.
Thank you guy's
I think this will help you.
pdo_pgsql
andphp_pgsql
extension using the wamp server menu or by editing your php.ini ; just remove the remark for the above extensions.