sådan.. efter meget kamp med det.. lykkes det at lave lortet...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Vis filer i en mappe!</title>
</head>
<body>
<hr><pre>
<?php
$folder = "mappen"; // set den til din mappe du vil vise!
echo '<table width="75%" border="0">';
echo '<tr> <td><a href="">Name</a></td> <td><a href="">Last modified</a></td> <td><a href="">Size</a>
</td> </tr>';
if ($handle = opendir($folder)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if (is_dir($file)) {
echo "<img src=\"
http://www.apache.org/icons/folder.gif\"><br />\n";
} else {
echo "
<tr>
<td><a href='$folder/$file'>$file</a></td>
<td>" . date("d-m-Y G:i:s", filemtime($folder . "/" . $file)) . "</td>
<td>" . round(filesize($folder . "/" . $file) / 1024, 3) . " KBytes
</td>
</tr>";
} }
}
closedir($handle);
}
?>
</table>
<br>
<hr>
så kan i andre osse få brug for det..