Image directory index with BBCode generation 1.0
Image directory index with BBCode generation is a very simple script to generate a 'preview' of a directory of images. It will ignore any files which aren't .gif, .jpg, .jpeg, or .png.
Basically it will generate an HTML page with a textbox of BBCode (for posting on forums) and the < img> itself so you can preview it. Saves a lot of time when you would normally be looking at a regular directory index and clicking back and forth!
I recommend you place this file in your favorite includes/ folder or the root of your website, and call it using the php include() function. That way should you find a need to modify this file, it's centrally located in one spot. ;)
WHATEVER YOU DO...
- This file (or the file which will include() this file) needs to be named index.php
- Then you place the index.php file in the directory you wish to view.
- That's really it. I wrote this on a whim so feel free to clean it up, change it, distribute, whatever.
More popular Image Gallery
- 3.5 KB
- 08/02/2010 02:49:42