Hello!
I want generate a file (.txt), but just for 1 hour (is an example), is that possible?
Thanks
| SitePoint Sponsor |
Hello!
I want generate a file (.txt), but just for 1 hour (is an example), is that possible?
Thanks
I think that the only way of doing that is to call a function every time a page on your server is loaded. This function would look for all files in the directory and delete (using unlink()) those which are over an hour old.
I think that's the closest you can get to automation.
Jake Arkinstall
"Sometimes you don't need to reinvent the wheel;
Sometimes its enough to make that wheel more rounded"-Molona
cron
Have it run every 5 minutes and check for files that have expired. Delete them if they have.
www.invoicejournal.com - Invoice clients for Free
Bookmarks