Directory Contents");
print("
Filename |
Type |
Size (bytes) |
\n");
// loops through the array of files and print them all
for($index=0; $index < $indexCount; $index++) {
if (substr("$dirArray[$index]", 0, 1) != "."){ // don t list hidden files
print("$dirArray[$index] | ");
print("");
print(findexts($dirArray[$index]));
print(" | ");
print("");
print(filesize($dirArray[$index]));
print(" | ");
print("
\n");
}
}
print("
\n");
?>