For an example with an extensive amount of images visit here
For an example with files visit here
For an example with a different style and files and images visit here
Update on Aug 05th 2010 to version 1.2
Update on Feb 22nd 2009 to version 1.1
New Features in Version 1.2
- Added algorithm to determine and dynamically set PHP memory limit when thumbnailing images
- Created a calculator (found in /di/fudge_factor_calculator.php) that will calculate the average overhead PHP has when thumbnailing images
New Features in Version 1.1
- User account system with the ability for multiple accounts
- Ability to upload files to the directory your are currently viewing using one of those user accounts
- Ability to not show the login link for the upload file system
- Ability to login through a defined directory
- Ability to define the maximum pixels the thumbnailer should try to thumbnail. (to prevent memory errors)
- Revised CSS styling
- A few minor bug fixes
- More that I forgot.
The directory listing script is designed for ease. You do not have to have any programming knowledge, any design knowledge, or even any web knowledge whatsoever. This script will take everything in your directory and display the folders in their own little section at the top of the page, it will then display any files with a corresponding file image that represents the file type next to it, it will then take any images inside of the script and display a thumbnailed image. Along with the folders, files, and images there will be useful information that represents the amount of files and folders inside a folder, the size of a file in kbs, the date the folder or file was last modified, the size of the image in kbs, the dimensions of the image, and the most awesome feature of all. A link to this link that will display a variety of linking formats for your linking pleasure. If you want to find the largest file in a folder, the newest file, the smallest file, or the oldest file the handy sort feature located at the top of every page is there to assist you!
When I said the script was designed for ease I wasn't just talking out of my ass. The only real thing you need to do is upload the index.php file and folder images. After that just load up the index.php file and it will do the rest for you. It will create your thumbs folder, your htaccess file, and remove any unwanted files from listing as defined by you.
To set the dimensions and quality of the thumbnailed images, the files in which you want to be considered images, the files and folders that you want to be ignored, and your filetype images simply just open up the index.php file in any text editor and follow the instructions within. If you do not like my dark gray style you can edit the css in the style.css file located within the di folder. Don't worry! It won't hurt my feelings!
The way the user upload system works is that you can set up an array of users in the index.php file. It is under the variable called "uploaders". To add a user you simply need to write the username inside quotation marks, make a => sign, and then write the password inside quotation marks. To separate users simply use a comma. For example: $uploaders = array ("bill" => "hunter2", "janice" => "feb12", "greg" => "mypass76");
There is a script that will calculate a fudge factor for PHP overhead, used for estimating memory usage while thumbnailing images, located at "/di/fudge_factor_calculator.php". Open the script in notepad, read the directions, and change the password.
If you have comments, suggestions, ideas, problems, or questions please e-mail using my contact page located here