|
Posted by Rich on 10/17/06 18:19
On 16 Oct 2006 09:47:34 -0700, laredotornado@zipmail.com wrote...
>
>Hi, I'm using PHP 4.4.4 with an Apache 2 web server. Is it possible to
>use PHP to generate htaccess files such that they protect a directory,
>requiring a username and password? I would like to have a PHP page
>that collects a username and password and then generates the file in a
>specific directory. Any help or code is greatly appreciated.
>
>Thanks, - Dave
>
I believe Apache has a number of ways to handle authentication. Beside the
..htaccess route, you can use an "AuthType" directive and choose from a number of
different options. The Apache site would probably cover that in better detail
than myself so I'll copy the link below...
http://httpd.apache.org/docs/2.0/howto/auth.html
Depending how many people you need to account for one method may be more
effective than the other.
Rich
--
Help a Community by Participating in Ours
We donate your subscription fees to the charity you choose
100% of your first month, 10% thereafter.
http://newsguy.com/charity.asp
Navigation:
[Reply to this message]
|