Important alert: (current site time 7/15/2013 10:11:07 AM EDT)
 

winzip icon

An Uber Image Gallery

Email
Submitted on: 2/22/2003 5:07:05 AM
By: gmtt_dan  
Level: Beginner
User Rating: By 6 Users
Compatibility: PHP 3.0, PHP 4.0
Views: 17887
(About the author)
 
     This code creates thumbnails (well resizes) of all the images in a directory, and then displays them on the page. Creating links to the larger images. Only 6 lines of code! (i had to put it in .zip due to html tags) see it working at www.clansr.co.uk/clanphotos
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 12 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
3/16/2003 7:51:37 AMHell_Freezer

also see it galleryizing 911 images at
http://www.mywb.co.uk/~hf/gmsprites/911_assrorted_sprites/
(If this comment was disrespectful, please report it.)

 
9/27/2003 11:15:42 AM

dude, you script has a syntax error
it causes erros in line 4,6 of index.php
you forgot to add this to line 2
$maindir =
(If this comment was disrespectful, please report it.)

 
9/27/2003 11:16:49 AM

err.... didnt get to finish that message sorry u forgot to add this
$maindir = "." ;

(If this comment was disrespectful, please report it.)

 
9/28/2003 9:31:40 AMBerndSoft

Very Cool!
I often wanted a code like this, but i never get it work. Yours is so cool!
(If this comment was disrespectful, please report it.)

 
4/13/2005 7:39:03 PMShawn J Cox

Didn't work for me, syntax problems line 4 and 6. People expect stuff to work right off the site, and not have to fix your shotty coding.
(If this comment was disrespectful, please report it.)

 
8/16/2005 1:57:20 PMNick

So how do you get it to work?
(If this comment was disrespectful, please report it.)

 
8/27/2005 2:46:49 AMnick

It works, you just go to photos.php not index.php, but 2 images at the top never work, onese where you can scroll back and foward through directories, how do you get rid of that?
(If this comment was disrespectful, please report it.)

 
10/5/2005 11:26:17 AMnick

This is really good, but can it resize the images by a percentage? rather then scaling it to a certail pixel size. some snaps are taken vertically some horizontal?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.