In a message dated 8/14/2005 10:54:57 A.M. Central Standard Time, jennymat@xxxxxxxxx writes: >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. You can use an .htaccess file or - if you have something like cPanel on a shared hosting environment you can use the "password protect directories" and make it even easier... here's a good Tutorial on using Apache for this: _http://phpnerds.com/article/securing-php-files-using-http-authentication_ (http://phpnerds.com/article/securing-php-files-using-http-authentication)