How can I have a password inside PHP code and guarantee that no one viewing the page in the browser can retrieve it?
Is:
Store the password encrypted. For example, take the output of:
sha1("secretpassword");
...and put it in your code. Even better, put it in your database or in a file outside of the web server's directory tree.