I've been using a file archive for a while now. I downloaded it (I'm a newbie) from mortz.tjokk.net (a norwegian site). The files are automatically sorted by name. How can I sort the files by the date they are uploaded?
Here is the sort-part (i think
sort($files);
$length = strlen($dir);
if ($length >= $MaxLenFilename) {
$length = $MaxLenFilename-3;
$displaydir = substr($dir, 0, $length) . "...";
}
else $displaydir = $dir;
if (count($files) != 0) {
echo "<tr><td colspan=\"5\"> </td></tr>\n";
echo "<tr><td colspan=\"3\"><b>$displaydir</b></td><td><b>Størr.:</b></td></tr>\n";
}
The full code can be seen here
Thanks for helping
