I have a PHP script that will validate a user in my mysql database. But I want it to become a login form for authorizing access to a directory. I've been told I need to use .htaccess (I am apache/unix based), but I can't find any PHP code that will help set that up. Any suggestions?