Lophty Directory indexer is a PHP class that allows you to display a sorted listing of subdirectories and files within a directory. File sizes and last-modified timestamps are provided for all files, which are sorted alphabetically first according to extension and then by filename. You can easily specify subdirectories and files to exclude from the listing. It offers a great degree of flexibility over which files are listed. Subdirectories can also be excluded from listing altogether.