 <p>You can't really just get the title, you can get the whole document and then weed out the elements you need: I like to use <a href="http://simplehtmldom.sourceforge.net/manual.htm#section_find" rel="nofollow">Simple Html Dom Parser</a></p> <pre><code>$html = file_get_html('http://www.google.com/'); $title = $html-&gt;find('title'); </code></pre>