Best way to get the contents of TITLE TAG from page URL
<p>Given a URL. What is the best way to get the contents of the <code>title</code> tag in the URL.</p>

<p>Basically I want to check for the <code>http_referrer</code> and if it exists give a link back to the referring page. But I would like the link to say the title of the referring page.</p>
