Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/01/2009, 11:12
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: listar contenido de carpeta

Si usas DirectoryIterator del SPL en PHP5, puedes llamar al método isDot() para filtrarlos:

Código php:
Ver original
  1. foreach(new DirectoryIterator( '/www/test/' ) as $file ) {
  2.        if(!$file->isDot() ) {
  3.               echo $file->getFilename();
  4.        }
  5. }

Saludos