<?php
/*
/ free scripts from cafewebmaster.com
*/
$od = opendir("./");
while($file = readdir($od)){
if( eregi("\.(gif|jpe?g|png|bmp)$", $file) ){
$file = rawurlencode($file);
echo "<a href=\"$file\"><img src=\"$file\" alt=\"$file\" width=\"200\"></a> ";
}
}
?>