Filename: FWcgen.php
Language: PHP
This short script will generate a photo gallery web page with optional
captions. The viewer can click on a thumbnail to see the full-size picture.
HTML Tag:
<a href="http://your.domain/FWcgen.php?dir=location">
where "location" is the path to the picture directory.
- Unzip the download file
- Edit the following line in FWcgen.inc:
- $tbrows - specify the number of pictures per row
- $stylesheet - pathname of stylesheet or null
- $bgcolor - specify background color as #NNNNNN
- $jpeg - the picture extension, default .jpg
- $text - the caption file extension, default .txt
- $pwidth - the width of thumbnails & caption in pixels
- $textcolor - specify text color as #NNNNNN
- Upload the script to your web directory.
- Upload a copy of FWcgen.inc to your web directory. These will be your default settings.
- Edit and upload a copy of FWcgen.inc to your picture directory. These will be the settings for this directory display.
- You're done!
Image Gallery
The script will generate a table of thumbnail pictures. For each picture it finds in the specified directory, FWcgen will look for a caption file, identified by the same basename as the picture with the $text extension.