Hi. PhpDig follows links so just make a list, but don't hand-type the list...
Code:
<?php
// link to files modified within the hour in current directory
$base = basename($_SERVER['PHP_SELF']);
if ($handle = opendir(".")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != $base) {
if (filemtime($file) > time() - 3600) {
echo "<a href=\"$file\">$file</a><br>";
}
}
}
closedir($handle);
}
?>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
|