Apache tooltips to develop in php with Postgresql

1

Well, I want to develop in php, so I need to install a tool that will make my pc turn half the server, as everyone knows there are several tools to download such as: XAMP, WAMP, EASYPHP etc. All of these support MYSQL DBMS.

I would like to know if there are tools of this type, but that come by default with POSTGRESQL DBMS support to indicate me. (It's a project for college, teacher required to use the POSTGRESQL DBMS).

I found a Bitnami tool called WAPP STACK, but I did not like it when I update the php file, it takes a while to update in the browser.

    
asked by anonymous 20.12.2016 / 19:11

1 answer

1

There are two drivers for connecting to postgres pgsql that allow you to use pg_ * and the PDO driver . The hiring is done as follows open the php.ini and look for the lines:

;extension=php_pgsql.dll
;extension=php_pdo_pgsql.dll

Uncomment (remove the semicolon) from both. Reinitialize apache, to test if they were installed correctly create a php file with just:

<?php
   phpinfo();

This will show all php settings.

If you have php set up at the command line you can do

php -m
    
20.12.2016 / 19:33