![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 1.05.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam, co zrobic zeby zdjecia był sortowane wg daty dodania (od najnowszej)
daje kod: CODE $dir = 'thumbs'; $imagesExtensions = array('jpg', 'jpeg', 'gif', 'png', 'bmp'); $files = scandir($dir); foreach($files AS $file) { $fileinfo = pathinfo($file); if(is_file($dir.'/'.$file) AND in_array($fileinfo['extension'], $imagesExtensions)) { echo '<img src="'.$dir.'/'.$file.'" alt="" />'; } } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 1.10.2025 - 07:29 |