Problem when connecting to PostgreSQL database using PHP.
When I run the pg_conect()
function, the following error occurs
Fatal error: Call to undefined function pg_connect()
I have already added the path of the dll from postgreSQL to httpd
LoadFile "C:/Program Files/PostgreSQL/9.4/bin/libpq.dll"
and also enabled php extensions in php.ini by removing ;
extension = php_pgsql.dll
Whenever I run the code to check if the extension is active it picks me up error
echo extension_loaded('pgsql') ? 'Ok':'Erro';
Currently I use wampserv with apache2.4.9 and php5.5.12. How can I resolve this error? is it possible to resolve to changing the version, since making these changes I can not? How can I get php access to pgsql? since my application is not able to find it?