I have a program that grab all image from directory and here the code:
$dir = dir("tags/carrot_cake");
while($filename=$dir->read()) {
if($filename == "." || $filename == ".." || $filename == $first_image) continue;
echo "<img src='tags/carrot_cake/".$filename."'class='img_235x235' />
How can I check the image date and grab the latest image first? Thanks!