Apache already has that feature. It's a directive in .htaccess, IIRC. On 8/14/05, jenny mathew <jennymat@xxxxxxxxx> wrote: > 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. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php