View Single Post
Old 05-24-2002, 05:35 PM  
Backov
Confirmed User
 
Join Date: Mar 2001
Location: Cat Detector Van
Posts: 1,600
If you REALLY want to do pics on html pages, but don't want to spend the time to do the individual pages, the best solution is a single PHP page. You just pass it an arg that is the filename of the image and it displays it.. It's how I do all of my non-automatically generated pic pages. Much easier that way.

Not that I do a lot of them, but hey, every once in a while. ;>

Here it is, I cut all of the extra crap out and commented it a little bit..

pic.php.txt

You'd call it like this:

a href="pic.php?image=images/blah.jpg"

You'll have to save it as, IE doesn't want to display it as a text file as it's actually HTML


Cheers,
Backov
__________________
<embed src="http://banners.spotbrokers.com/button.swf" FlashVars="clickURL=http://banners.spotbrokers.com" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="60"></embed>
Backov is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote