Uhh...well first you would get the directory contents of, let's say "/screenshot".
Then you would have PHP spit out the html with the proper links to the files.
It's actually pretty simple if you know how to actually get the directory contents. Which of course, I do not sheepish grin
Hope that sort of helps a little bit...