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="" />'; } } |
|
|
|
AdiosAmigos [PHP]Sortowanie wg daty 21.05.2009, 18:28:11
nexis filectime" title="Zobacz w manualu PHP" target="_m... 21.05.2009, 18:47:38
AdiosAmigos edit:
wywietla sie na stronie
Warning: filectime... 21.05.2009, 19:04:08
erix No to znaczy, że ścieżka do pliku jest nie taka, j... 22.05.2009, 17:24:30 ![]() ![]() |
|
Aktualny czas: 24.12.2025 - 16:34 |