I'm using the PHP Simple HTML DOM Parser to get e-mail addresses from 10.000+ pages.
require_once('simple_html_dom.php');
$html = file_get_html('http://www.myurl');
$email = $html->find('dl', 5)->children(3);
Sometimes get the follow error. Probably because some page's don't have the tag:
Fatal error: Call to a member function children() on a non-object
How to avoid this error if a page doesn't contain the info I'm looking for without interrupting the complete script?
find()failed to locate anything, so what it returns has no ->children() method.