Codice PHP:
// path fisico del tuo sito
$path_dir '/path/tuo/sito/home'.$dirz;

function 
PrintDir$path_dir ) {
    
$c_dir 0;
    if (
$handle opendir($path_dir)) {
        while (
false !== ($file readdir($handle))) {
            if ( 
$file != '.' && $file != '..' && $file != 'index.php' ) {
                
$c++;
                if ( 
is_dir($path_dir.'/'.$file) ) {
                    
$c_dir++;
                    echo 
" - <a href=\"./$file\">$file</a>";
                }
            }
        }
        
closedir($handle);
    }
    if ( 
$c_dir == ) {
        echo 
"No Section";
    }