1 ) { $timediff = strtotime("now") - (int) $filename[0]; if ($timediff > 86400) unlink($file); } } } }