4

Apache: v.2.2.14
PHP: 5.3.1
PostgreSQL: 8.4
XAMPP: version 1.7.3

2

2 Answers 2

11

XAMPP ships with a php_pgsql.dll/so, i.e. all you have to do is to edit the php.ini and remove the semicolon before

extension = php_pgsql.dll

and then restart the apache.

1
  • Googlers, this is also the answer to the —deeply misleading— phpPgAdmin error message: your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.
    – Frank N
    Apr 19, 2016 at 8:57
0

Yes you can, check https://www.php.net/manual/en/book.pgsql.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.