1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
<?php $files = glob("featured_images/*.*"); for ($i=0; $i<=3; $i++) { $num = $files[$i]; //print $num."<br />"; echo '<li><img style="width:180px; height:140px; padding: 3px; margin:5px; border: 1px solid #ccc;" src="'.$num.'" ></li>'; } ?>