Re: PHP with htaccess files
| From: | ditoiu cristian | Date: | Fri, 05 Jul 2002 12:00:30 +0000 |
| Subject: | Re: PHP with htaccess files | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20337@lists.php.net to get a copy of this message | ||
Yap .
you could do .
exec("htpasswd /path/to/the/pass_file $user $pass");
of course check if you have the right to write the pass_file .
"Larentium" <larentium@hosthive.com> wrote in message
news:006601c222d2$2d363900$1b3a6f0a@direcpc.com...
RE: PHP with htaccess files...
Has anyone used basic http authentication with htaccess files that reference
password files and used PHP scripts that could add new users to the password
file?
I wanted to use a PHP login page, but most of the site I want to protect is
already written in html and I do not want to go through the entire site
changing the extensions and adding an include statement to reference the
login script.
So I am wondering if there is any thing I need to consider or worry about
when using php with htaccess security...
Any help or advice would be greatly appreciated.
Larentium
larentium@hosthive.com