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
Wordpress Woocommerce - Use Update_Post_Meta to Add Product Attributes
How to Check If a Value Already Exists to Avoid Duplicates
How to Check for Special Characters PHP
Multidimensional Array PHP Implode
Best Way to Delete "Column" from Multidimensional Array
PHP Check If Time Is Between Two Times Regardless of Date
Connecting to Websocket with PHP Client
PHP Domdocument Error Handling
Find Multiples of a Number in PHP
Compile Error: "G++: Error Trying to Exec 'Cc1Plus': Execvp: No Such File or Directory"
Bulk Rename Files in a Folder - PHP
Laravel Orm from Self Referencing Table Get N Level Hierarchy JSON
Phpmailer - How to Remove Recipients
$_File Upload Large File Gives Error 1 Even Though Upload_Max_Size Is Bigger Than the File Size