View Feed
PHP Programmers
Community for PHP Programmers : Ask questions, doubts and help each other get better at PHP
297 Members
Join this group to post and comment.

How to connect to postgre database using php in xampp?

I am facing problem in connecting to postgre database in xampp

when try to execute the following script

It is showing me an unexpected error ie undefined function pg_connect()

Here is the script

$conexion = pg_connect("host=localhost port=5432 password=*** user=postgres dbname=***") or die('Can't connect!!!: ' . pg_last_error());
26 view but no reply

Anyway i got the solution ,

For this you have to modify php.ini file that you can search in xampp folder

Share this content on your social channels -