function traversal($dirname)
{
$dir = dirname($dirname);
if(!is_dir($dirname)){
die(Bad path please retry!!!);
return ;
}
$handle = opendir($dirname);
while(($file=readdir($handle))!==false ){
if($file != . && $file!=..){
echo "<br>" ;
echo $indir = $dirname . / . $file ;
if(is_dir($indir)){
allsee($indir);
}
}
}
closedir($handle);
}