Re: PHP generated AuthUserFiles?
| From: | David Otton | Date: | Fri, 10 Oct 2003 11:41:43 +0000 |
| Subject: | Re: PHP generated AuthUserFiles? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165723@lists.php.net to get a copy of this message | ||
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.