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

download options for directories / directory list with exec

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.