Re: [MANEJO DE DIRECTORIOS]

From: Date: Fri, 25 May 2001 06:47:21 +0000
Subject: Re: [MANEJO DE DIRECTORIOS]
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-10543@lists.php.net to get a copy of this message
Saludos ... Te recomiendo mirar en el manual las funciones de filesystem (ref.filesystem.html), en especial function.filemtime.html, function.fileatime.html y function.filectime.html ... Bye! On 25 May 2001, Eduardo Garcia wrote: > Hola a *; > > Bueno lista modifique una funcion > para listar el contenido > de un directorio y todo bien esta es al funcion: > > function list_dir($dirname,$op=0) > > { > > static $result_array=array(); > > $handle=opendir("$dirname"); > > while ($file = readdir($handle)) > > { > > if($file=='.'||$file=='..') > > continue; > > > > if(is_dir($dirname.$file)) > > { > > $subdirectorio=$dirname.$file; > > if($op==1) > > $result_array[] ="subdirectorio " . > substr(strrchr($dirname.$file,"/"),1); > > else > > $result_array[]=$dirname.$file; > > list_dir($dirname.$file."/",$op); > > } > > else > > { > > if($op==1) > > $result_array[] =substr(strrchr($dirname.$file,"/"),1); > > else > > $result_array[]=$dirname.$file; > > } > > } > > closedir($handle); > > return $result_array; > > } > > > > Pero aqui solo obtengo el nombre del archivo > y me gustaria tambien leer el timestamp o ultima > fecha de modificacion del archivo. > > No se como se podria hacer esto o si es con una > funcion relacionada. > > espero que me puedan dar una luz. > > gracias > > enzo > J. Eduardo Garcia Torres > Web Developer > Icq: 69885612 > Santa Marta - Magdalena > Colombia - Sur America > Usuario Linux # 164529 > Personal Page English : http://www.gennesis.com/enzo/ > Personal Page Spanish : http://www.geocities.com/netenzo/ > > > > ____________________________________________________________________ > Get free email and a permanent address at > http://www.netaddress.com/?N=1 > > --------------------------------------------------------------------- > 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 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Universidad del Valle Francisco Javier Lozano Bastidas Vicerrectoria Academica Administrador Servidor "mangle" Direccion de Educacion Desescolarizada Tel. : 3182624 3336450 4456826 http://mangle.univalle.edu.co Beeper : 6555000 Cod. 5139

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