PHP - Problema con lista de archivos

 
Vista:

Problema con lista de archivos

Publicado por anonimo (2 intervenciones) el 15/05/2006 03:12:39
Alguien sabe porque el siguiente código me muestra esto:
Código HTML:
. -0.00 Kb 01/01/70 12:59:59
.. -0.00 Kb 01/01/70 12:59:59
AC_ActiveX.js -0.00 Kb 01/01/70 12:59:59
AC_RunActiveContent.js -0.00 Kb 01/01/70 12:59:59
Images -0.00 Kb 01/01/70 12:59:59
estilos -0.00 Kb 01/01/70 12:59:59
index.php -0.00 Kb 01/01/70 12:59:59
js -0.00 Kb 01/01/70 12:59:59
viguer1.swf -0.00 Kb 01/01/70 12:59:59
Los archivos, estan bien listados,pero la fecha de modificación, y el tamaño, siempre es el mismo y para nada es correcto.

Si alguien me pudiera ayudar se lo agradecería mucho.
Código PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php BEGIN__VBULLETIN__CODE__SNIPPET $mostraruta = "/public_html/clientes/".$_GET['user']."/";
 
        $id_ftp=ConectarFTP();
        $lista=ftp_nlist($id_ftp,$mostraruta);
        $lista=array_reverse($lista);
 
     while ($item=array_pop($lista)) {
 
        $tamano=number_format(((ftp_size($id_ftp,$item))/1024),2)." Kb";
        $fecha=date("d/m/y h:i:s", ftp_mdtm($id_ftp,$item));
 
        echo "<tr>";
        echo "<td align='left'><a href='clientes/$client/$item' class='links'>".$item."</a></td>";
        echo "<td align='left'><span class='texto'>".$tamano."</span></td>";
        echo "<td align='center'><span class='texto'>".$fecha."</span></td>";
        echo "<td></td>";
        echo "</tr>";
 
    }
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder