Re: protecting a directory

From: Date: Sun, 14 Aug 2005 18:17:42 +0000
Subject: Re: protecting a directory
Groups: php.general 
Request: Send a blank email to php-general+get-220606@lists.php.net to get a copy of this message
In a message dated 8/14/2005 10:54:57 A.M. Central Standard Time, jennymat@gmail.com 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)

« previous php.general (#220606) next »