Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2003, 17:21
RakoVky
 
Fecha de Ingreso: diciembre-2002
Mensajes: 100
Antigüedad: 21 años, 4 meses
Puntos: 1
Usando archivos remotos

Saludos a todos!!!

Necesito ayuda con la lectura de ficheros remotos.


con este codigo puedo recojer la etiqueta Title

<?php
$file = fopen ("http://www.example.com/", "r");
if (!$file) {
echo "<p>Unable to open remote file.\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);
?>

¿como puedo recojer los meta name kEYWORDS Y DESCRIPTION?

Gracias Anticipadas......