$a = '0';
$i ='1';
$filepath = "landschap";
$the_array = Array();
$handle = opendir('landschap/.');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$the_array[] = $file;
}
}
closedir($handle);
sort ($the_array);
reset ($the_array);
while (list ($key, $val) = each ($the_array)) {
if ($a == '0') {echo "";}
if ($a == '4') {echo "
";}
if ($a == '8') {echo "
";}
?>
if($a == "0") {
echo '';
}
else
{
echo '';
}
echo $pages[$i];?> " alt=" echo $val ?>" width="228" height="156" border="0">';?> |
$a = $a + 1;
$i = $i + 1;
}
?>