0
Problem when connecting to Postgresql database using PHP.
When I run the function pg_conect()
, the following error occurs
Fatal error: Call to undefined function pg_connect()
already added the postgresql dll path to httpd
LoadFile "C:/Program Files/PostgreSQL/9.4/bin/libpq.dll"
and I also activated the php extensions in php.ini by removing the ;
Extension=php_pgsql.dll
Whenever I run the code to check if the extension is active it resumes me error
echo extension_loaded('pgsql') ? 'Ok':'Erro';
I currently use wampserv with apache2.4.9 and php5.5.12. How can I resolve this error? Is it possible to resolve the change by changing the version, since making these changes I can’t? How do I get php to access pgsql? since my application is unable to find it ?
Possible duplicate of I can’t connect with postgresql in php
– Renato Junior
Hello, the question in a way is similar but the answer of this link is not able to solve my error, I will edit the question to be clearer
– Bruno Aparecido da Silva