I've decided to take his tutorial a step further by showing you how to generate thumbnails for the gallery using PHP. I've also implemented a MooTools lightbox: Smoothbox. The following code will show you how to create a beautiful photo gallery by simply dumping your photos in a directory.
sumonst21/generate-photo-gallery.php
Automatically Generate a Photo Gallery from a Directory of Images
PHP