I am using this library (PHP Simple HTML DOM parser) to parse a link, here\'s the code:
function getSemanticRelevantKeywords($keyword){
$results = array(
This error usually means that $html isn't an object.
It's odd that you say this seems to work. What happens if you output $html? I'd imagine that the url isn't available and that $html is null.
Edit: Looks like this may be an error in the parser. Someone has submitted a bug and added a check in his code as a workaround.