hello, i want to protect a directory using php username and password authentication.the username and passwords will be stored in .htpasswd file.but the problem is that how to make user to enter passwod before giving the rights to view directory. is there any script like this.or can anybody help me out. thanks, Jenny.