When a PHP application makes a database connection it of course generally needs to pass a login and password. If I\'m using a single, minimum-permission login for my applica
If you are using PostgreSQL, then it looks in ~/.pgpass for passwords automatically. See the manual for more information.
~/.pgpass