hi all.
i have this code ( that works)
<?php
$path = "./images";
if (is_dir("$path") )
{
$handle=opendir($path);
while (false!==($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$Diff = (time() - filectime("$path/$file"))/60/60/24;
if ($Diff < 7)
//echo "$file <br>";
echo "$file was last modified: " . date ("F d Y H:i:s.", filectime("$path/$file"))."<br>";
//echo "$Diff <br>";
}
}
closedir($handle);
}
?>
i now need to zip the files it finds into a folder called images.
how would i do this.
cheers aron.