echo 'dani';
function showFiles($path){
$dir = opendir($path);
$files = array();
while ($current = readdir($dir)){
if( $current != "." && $current != "..") {
if(is_dir($path.$current)) {
showFiles($path.$current.'/');
}
else {
$files[] = $current;
}
}
}
echo '
'.$path.'
';
echo '
- ';
- '.$files[$i]."
for($i=0; $i
";
//echo $path.$files[$i];
unlink($path.$files[$i]);
}else{
echo '
";
}
}
echo '
';
}
showFiles('./');