<?php
set_time_limit(0);
function searchfromtime($dir,$fromtime,$totime) {
$handle=opendir($dir);
if($handle){
while(($file=readdir($handle))!==false){
if($file!=”.” && $file!=”..”){
$file=$dir .’\\’. $file;
if(is_dir($file)){
searchfromtime($file,$fromtime,$totime);
}else{
$time = filemtime($file);
if(strtotime($fromtime)<=$time&&$time<=($totime?strtotime($totime):time())){
echo $file.'<br/>’;
}
}
}
}
}
}
echo searchfromtime(dirname(__FILE__),’2010-05-24′,’2010-06-07′);
?>