Image directory index with BBCode generationHits: 8
*****
This 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.
Email me if you have any questions or suggestions... webguy at 330i dot net
-Chris
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Date: Jul, 08 2005 Author: Chris Blessing (webguy at 330i dot net), 200 OKDate: Thu, 21 Dec 2006 11:11:03 GMTServer: Apache {
License}
{
Ratings}Number of Ratings: 0 Votes
Visitor Voting Booth:
|