$site = file_get_contents("bla.html"); preg_match_all('/<title>(.*)<\/title>/', $site, $title); echo "<b>The title is:</b> ".$title[1][0];