Obihoernchen/DirectoryLister — pull request #1 by Nakebod (2012-08-20 21:48:07+00:00)
Title: readfile() replaced with a readfile_chunked() function

On my Synology NAS I couldn't get this script to work with files which where larger then PHP's memory_limit.
Large files where probably loaded into the memory, which failed as soon as the file was larger then the memory_limit in PHP.
After a tip for file chunks, I've managed to get it working.