while ($archivo = readdir($directorio)) { if ($archivo != '.' && $archivo != '..') { $archivos[] = $archivo; }}