if ($handle = opendir('your/site/path/to/images/')) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
?>
<img src="http://www.yoursitename.com/image_location/<?=$entry?>" />
<?
}
}
closedir($handle);
}
Link to this post!
