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......