Suggestions apache tools to develop in php with Postgresql

Asked

Viewed 145 times

1

Good people, I’m wanting to develop in php, and for that you need to install a tool that makes my pc become half server, as everyone knows there are several tools to download, as: XAMP, WAMP, EASYPHP etc. But all of these support MYSQL DBMS.

I wanted to know if there are such tools, but they come by default with POSTGRESQL DBMS support to indicate me. (It’s a college project, professor demanded to use SGBD POSTGRESQL).

OBS: I found a Bitnami tool called WAPP STACK, but I didn’t like it, when I update the php file, it takes time to update in the browser.

  • I didn’t understand the problem, just install postgres and enable the driver in php. If you need a program to manipulate the database you can use pgAdmin that already comes with postgres.

  • how to enable this drive in php ?

  • Is using windows or linux?

  • yes, use Windows 10

  • You are familiar with pgAdmin?

  • I’ve used it a few times

Show 1 more comment

1 answer

1


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

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

Uncomment (remove the semicolon) from both. Reinitiate apache to test if they have been installed correctly create a php file with only:

<?php
   phpinfo();

This will show all php settings.

If you have php configured on the command line you can do

php -m

Browser other questions tagged

You are not signed in. Login or sign up in order to post.