This code should return the title of a webpage, phpbuilder in this case
<?
$path = "http://www.phpbuilder.com";
$datatype = "title";
$pagefile = fopen($path, "r");
$data = fread($pagefile, filesize($path));
eregi("<" . $datatype . ">(.*)</" . $datatype . ">", $data, $out);
?>
This is the title:<br><br>
<?
echo $out[1];
?>
thx