I am using this library (PHP Simple HTML DOM parser) to parse a link, here\'s the code:
function getSemanticRelevantKeywords($keyword){ $results = array(
your script is OK. I receive this error when it doase not find the element that i'm looking for on that page.
In your case, please check if the page that you are accessing it has 'SPAN' element