ok starting off small.
i found a nice script that sorta does what i want.
<?php
//Starts Here
//Put here the directory you want to search for. Put / if you want to search your entire domain
$dir='./images';
//Put the date you want to compare with in the format of: YYYY-mm-dd hh:mm:ss
$comparedatestr="2006-09-09 00:00:00";
$comparedate=strtotime($comparedatestr);
//I run the function here to start the search.
directory_tree($dir,$comparedate);
//This is the function which is doing the search...
function directory_tree($address,$comparedate){
@$dir = opendir($address);
if(!$dir){ return 0; }
while($entry = readdir($dir)){
if(is_dir("$address/$entry") && ($entry != ".." && $entry != ".")){
directory_tree("$address/$entry",$comparedate);
}
else {
if($entry != ".." && $entry != ".") {
$fulldir=$address.'/'.$entry;
$last_modified = filemtime($fulldir);
$last_modified_str= date("Y-m-d h:i:s", $last_modified);
if($comparedate < $last_modified) {
echo $fulldir.'=>'.$last_modified_str;
echo "<BR>";
}
}
}
}
}
?>
except it grabs a subfolder ( i would like to ignore this subfolder)
example
./images/243868_card_id_26.jpg=>2006-09-09 10:43:34
./images/61159_card_id_30.jpg=>2006-09-09 10:43:38
./images/356149_card_id_27.jpg=>2006-09-09 10:43:42
./images/100520_card_id_23.jpg=>2006-09-09 10:51:12
./images/382636_card_id_33.jpg=>2006-09-09 10:43:51
./images/153207_card_id_25.jpg=>2006-09-09 10:43:55
./images/415297_card_id_19.jpg=>2006-09-09 10:44:00
./images/admin/admin_dev1_bl.gif=>2006-09-09 05:35:34
./images/admin/admin_dev1_br.gif=>2006-09-09 05:35:36
./images/admin/admin_dev1_tl.gif=>2006-09-09 05:35:36
./images/admin/admin_dev1_tl_grey.gif=>2006-09-09 05:35:37
./images/admin/admin_dev1_tr.gif=>2006-09-09 05:35:37
./images/admin/admin_dev1_tr_grey.gif=>2006-09-09 05:35:37
./images/admin/nav_back.gif=>2006-09-09 05:35:38
the subfolder is admin (i dont want to pick up this folder.
next bit is how do i go back 1 week from today's date (im guessing once i figure out 1 weeks, ill know how to do 2 or 3)?
cheers aron.