Clear and delete the folder after the time specified in php code example
Example: Clear and delete the folder after the time specified in php
($days *86400)) {
$nofiles++;
unlink($dir.'/'.$file);
}
}
closedir($handle);
echo "Total files deleted: $nofiles \n";
}
?>