PHP Filesystem Pagination

Posted by Byron on Stack Overflow See other posts from Stack Overflow or by Byron
Published on 2010-05-13T02:44:48Z Indexed on 2010/05/13 2:54 UTC
Read the original article Hit count: 217

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about php

Related posts about filesystems