Re: [PHP] Advice on maintaining public and private files

[email protected] (Al)
Newsgroups php.general
Message-ID <[email protected]>

On 2/21/2010 9:11 AM, Kim Madsen wrote:
> Al wrote on 20/02/2010 19:30:
>> I use Kim's solution and take it one step forward. Htacces files can
>> get lost or corrupted, so....
>
> No solution to that problem as I see it.
>
>> In my config file I have the text string.
>
> I like the idea, but what if this file is never accessed?
>

Generally my applications have Admins and Users.  Admins visit every day or two; 
when they do, function checkHTaccessFile($htaccessText) gets called.

It can also be called when Users visit, which is of course more often. This 
option is set in the config file.

If someone is particularly concerned a cronjob to run every x hours will also 
work.  This seems to me to be a bit of overkill.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.