php for password protection...
you can encrypt passwords using md5, save them to a .inc.php file, and then check entered passwords by md5 and checking the resultant hash with the hash stored in the .inc.php file. Is that your idea of password protection?
It would be much better to do this using a database of some sort.