Showing images from directory help
Posted: Sat Aug 13, 2011 10:18 am
Hi,
I now have this code for showing images from a certain directory:
This will show all images from that directory in their original size under eachother. What I want, is that the code shows miniatures of the images (for example 60x60px), and when you click on them you get the whole image in it's original size (in a new page or on the same page).
I have no idea where to start or how to make this code
. I hope somebody can help me 
I now have this code for showing images from a certain directory:
Code: Select all
<?php
$handle = opendir(dirname(realpath(__FILE__)).'/pictures/');
while($file = readdir($handle)){
if($file !== '.' && $file !== '..'){
echo '<img src="pictures/'.$file.'" border="0" />';
}
} ?>I have no idea where to start or how to make this code