我有一个程序可以从目录中获取所有图像,这里是代码:
$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' />
如何查看图像日期并首先获取最新图像?谢谢!