On Fri, 10 Oct 2003 06:34:43 -0400, you wrote:

>Is there a way to let PHP generate the necessary AuthUserFiles for use with
>.htaccess?
>
>I don't allow my clients the ability to use .htpasswd in the command line.
>
>From what I see, the user file is just a text file with the username and the
>encrypted password.

Hashed, not encrypted. Use crypt()

http://uk2.php.net/crypt

I'd bet money that a class to handle this already exists, though.

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=php+htaccess

Ah. That was easy.

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

Reply via email to