You are here: Re: Using php to generate htaccess files? « All PHP « IT news, forums, messages
Re: Using php to generate htaccess files?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация