Php Script To Delete Particular File

I need a simple script that when I run it as a cron job will delete a particular set of file. If I run this script today Sept. 16, 2010 it will delete the files from 5 days ago named Front_2010_09_11, Dine_2010_09_11, Party_2010_09_11 and Back_2010_09_11. When I run it tomorrow Sept. 17, 2010 it will delete the file from 5 days ago named Front_2010_09_12, Dine_2010_09_12, Party_2010_09_12 and Back_2010_09_12. And so on and so forth.

Leave a Reply

Your email address will not be published. Required fields are marked *