If you want to find the old files from your system or server then you can use the following code. I used the following code for deleting the old files from system.
deleting all one day old files from folder through php
/*****************Get the path to Extension ****************/ $array_path = explode("/",$_SERVER['SCRIPT_FILENAME']); <div id=":2e">$dynamic_path = ""; for ($i=0;$i if($array_path[$i]!="") $dynamic_path =$dynamic_path."/".$array_path[$i]; // This linux command will delete the one day older from specific folder. exec("find ".$dynamic_path."* -mtime +1 -exec rm {} \;");</pre> <div>
Great Information about checking old files from folder through php. Helpful trick.