ساده ترین راه :

<form action="" method="GET">
<input type="text" name="site" value="http://" />
<input type="submit" />
</form>

<?php
if(isset($_GET['site'])){
preg_match("|<title>(.*?)</title>|s", file_get_contents($_GET['site']), $title);
print $title[1];
}
?>