using exec() to produce a directory listing.
probably the shortest code to produce a full file-list without resorting to the servers built in directory display

copy the code of directories / directory list with exec

click here to select all the code