i've made a basic script to view files in a directory.
if($handle=opendir('/home/virtual/jynk.net/var/www/html/rundel/clientfolders/'.$username)){
while (false !== ($file = readdir($handle))) {
$dt=date ("d/m/Y H:i:s", filemtime('/home/virtual/jynk.net/var/www/html/rundel/clientfolders/'.$username."/".$file));
if($file != "." && $file != "..") {
$w++;
echo "<span class=\"copyftp\">file ".$w." - </span><a href=\"http://jynk.net/rundel/clientfolders/$username/$file\" target=\"_blank\">$file</a> - $dt <br>";
}
}
what's the best way to order it by date?