list directory class
Why this script
Especially in PHP4, there is no easy way to list the contents of a directory. Especially when you want to do this recursively, you need a lot of code. More, when you also want to sort the results.
This class does all that for you and also has a handy function which allows for easy outputting the results to the screen (so you don't have to write any recursive functions yourself)
What this script can do
It features:
- optional recursiveness
-
sorting of results by
- name
- extention
- size
- time (of modification)
- easy way to control the displaying of the results by passing custom functions for the output