Welcome Guest, Not a member yet? Register   Sign In
Delete file after 24 hours?
#2

[eluser]pickupman[/eluser]
Cron would be the way to go if it has to be on exact time increments, otherwise you could extend your controller class. Add a function call that deletes files before the time interval in your constructor. When ever a page is called, the controller will delete any files 24hours prior to now.

Take a look at one of the cache libraries out there. They basically automatically delete cache files after a set time interval. Search for Phil Sturgeon's cache library.


Messages In This Thread
Delete file after 24 hours? - by El Forum - 06-03-2010, 05:00 PM
Delete file after 24 hours? - by El Forum - 06-03-2010, 07:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB