not sure if this is what u looking for...
below is a script to grab the title of a webpage
$url = "http://www.yahoo.com";
$pt = parsetitle($url);
echo "Title: " . $pt;
function parsetitle($url) {
$file = @fopen($url, 'r');
if($file) {
while (!feof($file)){
$line = @fgets($file, 1024);
# you can effectively get any value from a webpage if you know
# the pattern surrounding the value u want
if (eregi('<title>(.*)</title>', $line, $out)) {
$content = $out[1];
break;
}
}
//empty($content) ? print '' : print $content;
return rawurldecode($content);
@fclose($file);
} else {
return "Cannot find what u looking for sorry";
}
}
xeelee