'.$parentparentdir.''; $dir = new DirectoryIterator(dirname(__FILE__)); foreach ($dir as $fileinfo) { if (!$fileinfo->isDot() && $fileinfo->getFilename() != 'index.php') { if($fileinfo->isDir()) $class = 'cartella'; else $class = 'file'; echo '

'.$fileinfo->getFilename().'

'; } } ?>