"; $descs = parse_ini_file("descriptions.ini"); $count = 0; $page_starts = $page * $pics_per_page; $page_ends = ($page+1) * $pics_per_page; while ($file = readdir($myDirectory)) { if (($file != ".") && ($file != "..") && ($file != "index.php") && !(is_dir("imgs/$file")) ) { if($count>=$page_starts && $count<$page_ends) { $files[] = $file; if (is_int($i / $cols)) { list($width, $height) = getimagesize("imgs/$file"); echo ""; ?>
"; // echo "$file
"; $f = str_replace(" ","_",$file); echo $descs[$f]."
"; echo ""; } else { list($width, $height, $type, $attr) = getimagesize("imgs/$file"); echo ""; ?>
"; // echo "$file
"; $f = str_replace(" ","_",$file); echo $descs[$f]."
"; echo ""; } $i++; } $count++; } } echo ""; closedir($myDirectory); echo "
"; $page_count = $count/$pics_per_page; echo "
"; if($page!=0) { echo ""; } echo "Previous"; if($page!=0) { echo ""; } echo "  "; for($i=0;$i<$page_count;$i++) { if($page!=$i) { echo ""; } else { echo "[ "; } echo ($i+1); if($page!=($i)) { echo ""; } else { echo " ]"; } echo "  "; } echo "  "; if($page!=($page_count-1)) { echo ""; } echo "Next"; if($page!=($page_count-1)) { echo ""; } echo "

"; ?>

Quick and Dirty PHP Photo-Report. Not nicer, but with captions! :-)
I'm not a PHP coder™

Photos taken on a Nikon Coolpix 5700 camera, scaled-down with ACDSee 6.0.

5MP Pictures (2560x1920x24bpp) are available upon request.
If you want any of the pictures hi-res, write to me:
jcl at javiercampos dot info