View Single Post
Old 07-31-2004, 12:48 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
Charter is offline   Reply With Quote