Archive for PHP

php script to display all images in a directory

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);
}
Easy AdSense Lite by Unreal