faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 37 people (30%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

I have images on my site that when a thumnail is clicked the larger image appears In a pop-up. Is there a better way to do this in PHP instead of html

Feb 19th, 2008 22:23
dman, Dave Kingdon, Jeremy Foster, http://www.ttnr.org


Yup.  Read on.
I made myself a browsing PHP script for my website so I could upload 
and show photos of my and my mates drunk in various cities of the world.
The file basically starts out by listing the directories (albums) in a 
pre-defined photos directory.
When you click one, it then changes to display thumbnails of the photos 
(if the thumbnails don't exist, the script creates them and saves them 
in a /album/thumbs/ directory that it makes).  You can then click 
through pages of 12 photos.
It also has the ability to accept someone logging on, and then it shows 
them an extra icon next to each photo.  When this is clicked, they are 
presented with a 'comment' box, which they can enter a comment for the 
photo.  That comment is then saved in a MySQL database and displayed 
next to the image.
You can see the photos here:
http://www.joliet.co.uk/browse.html
The code is still in early stages, and it might not work on Netscape (I 
usually leave that until the script is logically completed before I 
waste time on Netscape users :))
Dave