unhappy
Guest
Почему цикл выводит только...
...первый рисунок из папки?
...первый рисунок из папки?
PHP:
$dir=opendir('papkasfotkami/');
while(($e=readdir($dir))!==false){
if($e=='.' || $e=='..') { continue; }
header ("Content-type: image/jpeg");
$big_img = ImageCreateFromJPEG ("papkasfotkami/$e");
$small_img = ImageCreatetruecolor(101,101);
$sizee = GetImageSize("papkasfotkami/$e");
imageCreateTrueColor($sizee[0],$sizee[1]);
ImageCopyResized($small_img, $big_img, 0, 0, 0, 0, 101, 101, $sizee[0], $sizee[1]);
ImageJPEG($small_img);
}
closedir($dir);