Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/06/2003, 12:36
RakoVky
 
Fecha de Ingreso: diciembre-2002
Mensajes: 100
Antigüedad: 21 años, 4 meses
Puntos: 1
Fopen ¿Tamaño del Fichero?

Saludos ......

Necesito de la ayudad de alguien:

Observen el siguiente script...

Código PHP:
$url=$HTTP_POST_VARS['url'];
$file = @fopen ($url"r");
if (!
$file) {
    echo 
"<p>Imposible leer esta página.\n";
    exit;
}
while (!
feof ($file)) {
    
$line fgets ($file1024);
        
/* This only works if the title and its tags are on one line */
    
if (eregi ("<title>(.*)</title>"$line$out)) {
        
$title $out[1];
        break;
    }
}
fclose($file); 
Con esto visitu una URL, y extraigo el titulo de la página asociada a la url en cuestión.

Hasta este punto, todo bien.
La pregunta:
¿Como puedo averiguar cuanto pesa en Kb, el fichero que he leido?

Gracias de antemano.....