This question already has an answer here:
- PHP Get contents of webpage 2 answers
PHP Simple HTML DOM Parser
Fatal error: Call to a member function find() on boolean in /home/admin/web//public_html/index.php on line 14
Why does it fail?
include("simple_html_dom.php");
$html = file_get_html('http://en.wikipedia.org/wiki/facebook');
$title = $html->find('h1[id=firstHeading]',0)->innertext;
echo $title;
</div>