auf ersten blick 1.te zeile:
<?php
statt nur <?
und das fclose nach dem fwrite statt dem if ($handle)
weiterhin sind '.' und '..' ebenfalls verzeichnisse, desshalb:
Code:
while ($file = readdir ($handle)) {
if (! is_dir($path."/".$file) && $file != 'index.html') {
$byte = filesize($path."/".$file);
echo ....
}
}
und für
Zitat:
while (false !== ($file = readdir ($handle))){
|
gehören dir die hände mindestens hart abgeschrubbt

waum nicht gleich
while ((false !== ($file = readdir ($handle))) == true) ???
ein
Code:
while ($file = readdir ($handle)) {
tut's allemal!