|
$katalog_g = ('zabawa');
$katalog = ('zabawa/min');
$dir = opendir($katalog);
$ext = Array('.jpg', '.jpeg','.JPEG','.JPG');
$num = 0;
$wiersz = 8;
echo " ";
while(false !== ($file = readdir($dir)))
{
if($file != '.' && $file != '..')
{
$rozszerzenie = strtolower(strrchr($file, "."));
if(in_array($rozszerzenie, $ext)){
if(($num%$wiersz) == 0){
echo " | ";
}else{
echo " |  | ";
}
$num++;
}
}
}
echo " | ";
?>
|
|