Re: archivos de un directorio

From: Date: Tue, 19 Dec 2000 18:47:47 +0000
Subject: Re: archivos de un directorio
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-5105@lists.php.net to get a copy of this message
Aqui te va un ejemplo Atte. Claudio Heidel Buenos Aires Argentina ---------------------------------------------------------------------------- ----------------- <?php $the_path = $GLOBALS["DOCUMENT_ROOT"] . "/Noticias/imagenes"; list_files($the_path); function list_files($the_path) { $handle = dir($the_path); print "\n<b>Archivos Existentes:</b><br>"; while ($file = $handle->read()) { if (($file != ".") && ($file != "..")) { print "\n" . $file . "<br>"; } } print "<hr>"; } ?> ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: José Rodríguez <jrodrigu@cec.uchile.cl> To: <lista@phpes.com> Sent: Tuesday, December 19, 2000 3:49 PM Subject: [PHP-ES] archivos de un directorio > > ¿Cómo puedo obtener la lista de archivos que hay en un directorio? > > > > > > > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com >

« previous php.general.es (#5105) next »