This is the code I have and I am wondering where do I insert my image path. I need the image shown to be taken from a specific folder but this code only allows php to look in my root folder. Can anyone help? Where should I insert the name of my images folder?
<?php $images = glob('*.{gif,png,jpg,jpeg}', GLOB_BRACE); $num_of_files = 4; foreach($images as $image) { $num_of_files--; if($num_of_files > -1) echo "".$image."Created on ".date('D, d M y H:i:s', filemtime($image)) ."
" ; //display images else break; }?>
