$col_ctr=0; // counter for images per row
$column = 3; // number of pictures in a row
$actual = "4th_gallery_tropix/gallery1/actual/";
$thumb = "4th_gallery_tropix/gallery1/thumbnail/";
$dirHandle = opendir($actual);
$ctr=0;
while ($file = readdir($dirHandle)){
if(!is_dir($file) && strpos($file, '.jpg')>0 || strpos($file, '.JPG')>0) {
$ctr++;
if ($ctr==1){
$firstpicture = $actual.$file;
}
$thumbicon = substr($file,0,strpos($file,"_b"))."_s.jpg";
echo "
".
"
";
}
}
?>