Auto Delete Old Stuff (Tivo Style)
Posted: April 1st, 2009, 4:32 pm
I'm trying to create a script that would delete anything older than x number of days.
I've written a script that does what I'm looking for in PHP. My main problem now is that the file dates are not when the file was downloaded. They are instead, when the file was originally created/uploaded to usenet.
I've found that the php touch command would allow me to set the date to my date of download.
My problem now is that I don't know how to access the file name(s) of the files downloaded while I'm in my php script. Any ideas or do I have to learn a new language?
J
I've written a script that does what I'm looking for in PHP. My main problem now is that the file dates are not when the file was downloaded. They are instead, when the file was originally created/uploaded to usenet.
I've found that the php touch command would allow me to set the date to my date of download.
My problem now is that I don't know how to access the file name(s) of the files downloaded while I'm in my php script. Any ideas or do I have to learn a new language?
J