<?php $verz="Ordner"; $handle=opendir($verz); while ($file = readdir ($handle)) { if ($file != "." && $file != "..") { $zeit=filectime($verz."/".$file); $datum=date("Y-m-d",$zeit); $array[$file] =$datum; } } closedir($handle); arsort($array); foreach($array as $file) { while(list($key,$val) = each ($array)) { echo "<table border='0' bordercolor='#333333' bgcolor='#333333' Cellspacing='0' width='800'>"; echo "<tr><td bgcolor='#333333' width='600'>$key </td>"; echo "<td bgcolor='#333333' width='200'>$val</td></tr>"; } } ?>
So das ist ja jetzt alles schön nach dem neusten datum geordnet, aber wie zum Teufel mache ich das die neusten Ordner (7 Tage) farbig sind? Hat wer einen Vorschlag (am liebsten schon in das script eingebaut).
Danke schonmal
Gruß
Freedom