A question on the username / password when connecting to
MySQL from PHP. I now use:
mysql_pconnect("localhost", $db, $pw);
I would, however, like to use
where the username / password is read from one location like the ~/.my.cnf file is used by the mysql command line tool.
This would make the PHP scripts easier to maintain (no changes when the password is changed), and it would make it less easier to find the username / password for the database.