<?php $path = '/home/example/public_html/temp/'; if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { $path_parts = pathinfo($path . $file); $fileName = $path_parts['filename']; if((time() - strtotime($fileName)) > 24*30*3600) { unlink($path . $file); } } closedir($handle); } ?>
You have javascript disabled. You will not be able to edit any code.