I have a PHP application that needs to connect to a Postgres database and I don't want to store the credentials in a config file outside the web tree, if I can help it. I installed the pgsql module.
I read this SO post and like the idea of putting them in httpd.conf
I was wondering if anyone has figured out a way to store PostgreSQL db credentials in httpd.conf.
There are no predefined php.ini directives for PostgreSQL PHP module like there are for MySQL PHP module, as far as I can tell:
http://php.net/manual/en/ini.list.php
php_value mysql.default.user myusername
php_value mysql.default.password mypassword
php_value mysql.default.host server
Thanks