A simple gallery.
I’ve wanted to create a simple online photo gallery for a while now but, being lazy, i needed something that required minimal effort to make and update. I thought i might try and write some PHP that automatically generated a webpage of clickable thumbnails based on the contents of a given folder …but thankfully i found some people that’d already done just that. I love the Internet.
Say hello to these wonderful little bits of code:
I settled on sfpg as it required least effort (though neither are particularly difficult to get working) – just drop a PHP file into the directory of images and you’re away. It could not be simpler – you’re up and running in seconds (though I hacked at the code a little bit in order to hide some functions that i didn’t want available, which took me much, much longer than a few seconds).