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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to