Re: php/.htaccess/.htpasswd
| From: | 1LT John W. Holmes | Date: | Wed, 01 May 2002 19:22:41 +0000 |
| Subject: | Re: php/.htaccess/.htpasswd | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95567@lists.php.net to get a copy of this message | ||
Yes, it's certainly possible. There are classes out there that manage
.htaccess permissions for you and provide a web interface to do it. The
scripts will write the appropriate .htaccess files based on what you choose
to do.
Search hotscripts.com or phpclasses.org for one of them.
The passwords are made using crypt(). So you take the users password,
crypt() it, and compare it to what in the file. I would recommend you get
one of the administration classes, though, rather than re-creating the
wheel.
---John Holmes...
----- Original Message -----
From: "Kelly Meeks" <info@rightangleinc.com>
To: <php-general@lists.php.net>
Sent: Wednesday, May 01, 2002 2:12 PM
Subject: [PHP] php/.htaccess/.htpasswd
Is is possible to use php to admin a password file used by a .htaccess file?
I know that sometimes it is easier/more robust to manage password protection
via sessions/database, but I've got a client that wants to use a .htaccess
file.
How do you deal with the encryption of the passwords, etc?
I appreciate any guidance,
Kelly