Salve a tutti,

mi è chiaro quanto riportato dall'esempio di php.net sull'utilizzo di fopen nella lettura di file remoti...
Esempio:

Codice PHP:
<?php
$file 
fopen ("http://www.example.com/""r");
if (!
$file) {
    echo 
"

Unable to open remote file.\n"
;
    exit;
}
while (!
feof ($file)) {
    
$line fgets ($file1024);
    
/* This only works if the title and its tags are on one line */
    
if (preg_match ("@\<title\>(.*)\</title\>@i"$line$out)) {
        
$title $out[1];
        break;
    }
}
fclose($file);
?>
Il problema che sollevo e che non riesco a risolvere è:
come posso leggere ad esempio la DESCRIPTION del sito utilizzando il metodo preg_match ?

Grazie!