möchte das ordner und datein nach alphabet geordnet werden, wie stell ich das für dieses script an? p.s. bei php.net und im forum schon geguckt, leider negativ:
PHP:
<style type=text/css>
body {background-color: DBE7F5; margin: 2px
}
a {font-family: verdana; font-size:7pt; text-decoration:none; font-style: none; color: black}
</style>
<table border=0 cellspacing=0 cellpadding=0><tr>
<?
$uri = $_SERVER['REQUEST_URI'];
$path = "/homepages/7/d101401614/htdocs$uri"; // Open the folder
$dir_handle = @opendir($path) or die("Kann $path nicht öffnen"); // Loop through the files
while ($file = readdir($dir_handle))
{
if($file == "." || $file == ".." || $file == "index.php" || $file == "dir.gif" || $file == "file.gif"
)
continue;
$size = filesize ($file)/1000;
if (is_dir($path.'/'.$file)) {
echo "<td><img src=dir.gif> <a href=\"$file\">$file</a></span></td><td> <span style=font-family:verdana;font-size:7pt;color:black><i>dir</i></span></td></tr><tr>";
}
else {
echo "<td><img src=file.gif> <a href=\"$file\">$file</a></span></td><td> <span style=font-family:verdana;font-size:7pt;color:black><i>$size KB</i></span></td></tr><tr>";
}
}
closedir($dir_handle);
?>