$titulo_galeria

"; $dir = dir("$PATH"); $dir->rewind(); $coluna = 0; echo "

"; while($file=$dir->read()){ if (substr($file,-4) == ".jpg") { $size = filesize($PATH . $file); $imgsize = getimagesize($PATH . $file); $img_w = $imgsize[0]; $img_h = $imgsize[1]; $nome = explode(".jpg", ucwords(ereg_replace ("_", " ", $file))); $nome = $nome[0]; for ($n=0;$n<=100;$n++){ } $scale = min(500/$img_w, 500/$img_h); if ($scale < 1) { $new_width = floor($scale*$img_w); $new_height = floor($scale*$img_h); } else { $new_width = $img_w; $new_height = $img_h; } if ($coluna <= 2){ echo ""; $coluna++; } else { echo ""; $coluna = 1; } } } //echo "


"; echo "

Fotos por Marcos França

"; $dir->close(); } ?>