I think i have worked this out maybe not the best code ever written but it works for me
This PHP code will look in the specified directory and display the latest images
<?php
$images = glob('../weather/meteor/'.'*.{jpg}', GLOB_BRACE); //formats to look for
$num_of_files = 3; //number of images to display
foreach($images as $image)
{
$num_of_files--;
if($num_of_files > -1) //this made me laugh when I wrote it
echo "<b>".$image."</b><br>Created on ".date('D, d M y H:i:s', filemtime($image)) ."<br><img src="."'".$image."'style='width: 100%'"."><br><br>" ; //display images
else
break;
}
?>