Topic: Deleting Files With A PHP Script

Hi!
I'm here for question something that I don't know how to do it... :S
Is possible to erase files from a folder every minute or something like this with an php script?

*I'm trying to erase some cached files, but I have to do manually ¬¬


Thanks. wink

Re: Deleting Files With A PHP Script

http://www.webcron.org/index.php?&lang=en

Or more simply, if you have a unix server (and the necesssary privileges), you can use cron.

Re: Deleting Files With A PHP Script

I can do it with php and the function unlink();
Then I added a cron job that I'm testing now.

Thanks!

Re: Deleting Files With A PHP Script

No need to call up the PHP interpreter for that. Just use rm.

Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks