One big problem with setting the password variable directly in a file like this is, if php is ever not parsing files correctly (like if someone is mucking about with apache config), anyone who goes to your php page will see the source code, and the password therein. Best to keep sensitive data outside webroot, and include the files.