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="" />'; } } |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 1.05.2009 Ostrzeżenie: (0%)
|
edit:
wywietla sie na stronie Warning: filectime() [function.filectime]: stat failed for nazwapiku.jpg in /home/dajfoto/domains/strona.pl/public_html/galeria.php on line 13 Ten post edytował AdiosAmigos 21.05.2009, 19:08:09 |
|
|
|
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
erix No to znaczy, że ścieżka do pliku jest nie taka, j... 22.05.2009, 17:24:30 ![]() ![]() |
|
Aktualny czas: 31.12.2025 - 00:13 |