I have a simple code that shows all images in a directory. What I need to do is paginate index.php (where all the images are displayed) into pages showing 20 at a time. I've look all over online, but they all give you codes for paginating something from a mysql database. I can't find code for paginating all images in a directory. What I need is the simplest/shortest code for doing this so that I can actually understand it. 10 points for the best working code. Thanks!