<table><tr><td>Karte</td><td>Izmērs</td><td>datums</td></tr>
<?php
if ($handle = opendir('C:/AppServ/www/demoo/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
$izmers = filesize($file);
echo "<tr><td><a href=\"http://cs.1wish.lv/demoo/$file\">$name</a></td><td>$izmers</td><td>$day.$month.$year $hour:$minute</td><tr>";
}
}
closedir($handle);
}
?>
</table>
šitā laikam..