A while ago I stumbled across
this post discussing a simple script for viewing all the images in a directory and finally I'm posting about it.
The main reason I'm posting is that not so very long ago I wrote a script that did something very similar. My main problem was that I had perhaps a couple hundred images and as far as I could tell for many of the existing solutions I would have needed to individually input each image or write a script to populate a database or flat file. If I was going to write a script to make things work I might as well write the gallery script myself.
The main difference between my script and this script is that becuase of the numbers of images I had I wanted to view multiple images on one page in thumbnails and then click on the thumbnails to view the full size images. I could have generated the thumbnails on the fly but I decided to generate them at the start so that everything would run nice and quickly when I really needed the speed.
Hopefully the numbers of these scripts popping up will fall if we can actually find suitable examples for our needs quickly, without having to create them ourselves.