Yet Another Single File PHP Gallery
A photo gallery in a single file, inspired by SFPG.
This program has far fewer options and is much less customisable, but is much neater and more compact.
How to Use
- Set up a file structure for your photos, with directories for albums containing image files in JPG or PNG format. Directory and file names will be used as album and photo names, while the modified date will be used to sort them (albums go newest-first, photos within them go oldest-first).
index.phpinto the top-level directory containing your album directories.
index.phpto your liking, e.g. change the title block, CSS, whatever
- Create a
cachedirectory that is writable by your web server, alongside your albums and
- Ensure that your web server (only tested with Apache!) has PHP and GD support and GD is installed.
- Visit the site in a web browser. (The first time you load a page it will take a while as it is generating thumbnails. Next time it will be much quicker!)