{% else-1 %}
(14 май 2016, 17:57) (2/0) [2]
Fridrix,
$open=opendir('sys/img');
while($file=readdir($open)){
$ext=strtolower(pathinfo($file, PATHINFO_EXTENSION));
if ($ext == 'png' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'gif'){
echo '<img src="/sys/img/'.$file.'">";
}
}
closedir($open);
  • 1 из 1