I have written a small piece of code for deleting the old files from a directory with the help of filemtime() function. Following piece of code delete the 10 days old files from a root directory.
Php has file related functions , which helps us to get complete details of the file creation and modification etc
// filemtime is a php function which gives us the last modified info of any file
$file_modified_on = date(“l,