$file = fopen("http://www.php.net/", "r");
if (!$file) {
echo "Unable to open remote file.\n";
exit;
}
while (!feof($file)) {
$line = fgets($file, 1024);
if (eregi("
(.*) ", $line, $out)) {
$title = $out[1];
break;
}
}
fclose($file);
?>