Fatal Error: Call to Undefined Function Pg_Connect()

Fatal error: Call to undefined function pg_connect()

You need to install the php-pgsql package or whatever it's called for your platform. Which I don't think you said by the way.

On Ubuntu and Debian:

sudo apt-get install php-pgsql

Uncaught Error: Call to undefined function pg_connect() using XAMPP on Windows

You need to enable pgsql.dll if you want to use pg_*() functions.

You enabled php_pdo_pgsql.dll which allows for connecting to PG DBs using the PDO extension.

PHP to Postgres - Fatal error: Call to undefined function pg_connect()

Well, I don't know if this is the best solution, but I updated my PHP to version 5.6 and that took care of it.

Documentation here - http://coolestguidesontheplanet.com/upgrade-php-on-osx/

Hope that is helpful.



Related Topics



Leave a reply



Submit