Non capisco perche' con un sito web non funziona..

$stringa = file_get_contents($url);

if(ereg("<body(.+)</body>", $stringa, $sottostringa)) {

echo "Quello che hai estratto è " . $sottostringa[1];

} else {

echo "Non c'è nulla con il tag impostato";

}