That script will display the contents of a directory, excluding hidden files, "up" directories and php files.
Is how it displays the file. For example, to dedicate an entire line to each file (and a link), you'd replace that line with:
And you can thank Void for this, because this is a fixed version of what I wrote (I wrote something, it didn't work, so he corrected it).