PHP Filesystem Pagination
- by Byron
How does one paginate a large listing of files within a folder?
I can't see any functions in the PHP documentation that mention any way to specify an 'offset'. Both glob() and scandir() simply return all the files in the folder, and I'm afraid that won't be a good idea for a huge directory.
Is there any better way of doing this than simply going through all the files and chopping off the first X number of files?