Hello everyone,
I am trying to retrieve some info from a remote site using PHP DOMDocument and I cannot figure out why the code returns NULL, although the provided ID exists on the page. Please help.
$dom = new DOMDocument("1.0", "utf-8");
@$dom->loadHTMLFile('http://sports.yahoo.com/news/messis-tax-hearing-put-back-122033643--sow.html');
$content = $dom->getElementById('yog-content');
var_dump($content);