UBB.Dev
Posted By: DrChaos Question about showing images in php - 07/25/2004 6:42 PM
I found a script that shows the images of a dir as thumbnails and when clicked they will show the regular size image.

The script is public so I attached here. You can drop it into a folder that has images and bring it up in the browser to see what im talking about. There are place holders where the images should be but I cant get it to create the the thumbnail.

Attached File
117284-photoalbum.zip  (25 downloads)
Posted By: DrChaos Re: Question about showing images in php - 07/25/2004 6:55 PM
Fixed.

On line 57 there is this code
<img src="<?= $PHP_SELF ?>?<?= $params ?>" style="width:<?= $w1 ?>;height:<?= $h1 ?>;"></a><br>

Should be
<img src="<?= $filename ?>?<?= $params ?>" style="width:<?= $w1 ?>;height:<?= $h1 ?>;"></a><br>


replacing $PHP_SELF with $filename
© UBB.Developers