One cool thing about php is that you can fairly easily validate users before displaying content on a page by page basis. Let's say you don't want to restrict the entire directory using htaccess, this is a neat alternative. This tutorial shows how to create a simple page-based login system using PHP and mySQL.