codice:
$path='../modules/';
if ($handle = opendir($path)){
     while (false !== ($dir = readdir($handle))){
             if ($dir != "." && $dir != ".." && is_dir($path.$dir)) {
                  echo "{$dir}
\n";
               }
          }
     closedir($handle);
  }