if($gestor=opendir('.')) { while (($archivo=readdir($gestor))!==false) { if (is_dir($archivo) and $archivo!='.' and $archivo!='..') echo '
'.$archivo.'
'; } closedir($gestor); }?>