<?php $d = dir("../eventos/"); while (false !== ($entrada = $d->read())) { if(is_dir($entrada))echo $entrada."<br>"; } $d->close(); ?>