salve

allora prendendo spunto da una bella pillola

Codice PHP:
<?
function dirtree($path){
/**
* author: kuarl<grivier@animeterminal.it>
* date: 26-08-2002
*/
    
$fd opendir($path);
    while(
$file readdir($fd)){
        if(
$file != '.' && $file != '..'){
            
$ris[count($ris)]['name'] = $path."/".$file;
            
$ris[count($ris)-1]['size'] = filesize($path."/".$file);
            
$ris[count($ris)-1]['last_mod'] = filemtime($path."/".$file);
            
$ris[count($ris)-1]['last_acc'] = fileatime($path."/".$file);
            
$ris[count($ris)-1]['perms'] = fileperms($path."/".$file);
            
$ris[count($ris)-1]['type'] = filetype($path."/".$file);
            if(
is_dir($ris[count($ris)-1]['name'])){
                
//unset($ris[count($ris)-1]); // commentandola avrete anche i nomi delle directory
                
$ris array_merge($risdirtree($path."/".$file));
            }                
        }
    }
    
closedir($fd);
    return 
$ris;
}
$dir dirtree('H:/Image Gallery');
foreach (
$dir as $super => $valore)
    foreach (
$valore as $chiave => $value)
        print 
"[$super][$chiave] > $value
\n"
;
?>
attaccandomi a questa, come faccio a poter cancellare e modificare i file??

grazie!!