// function to read stuff within a dir
function readIt($direc,$ind) {
$files = array();
if ($dh = opendir($direc)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != "..") {
$files[] = $file;
}
}
closedir($dh);
}
$files = array_unique($files);
foreach ($files as $pic) {
echo "
$pic
";
}
}
readIt("london",0);
?>