![sonrisota](http://static.forosdelweb.com/fdwtheme/images/smilies/xD.png)
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 ($file, 1024);
/* 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);
Hasta este punto, todo bien.
La pregunta:
¿Como puedo averiguar cuanto pesa en Kb, el fichero que he leido?
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
Gracias de antemano.....