Anyone knows why I have this error? What am I doing wrong?
<?
include('simple_html_dom.php');
$html = ("http://99designs.pt/logo-design/contests?show=finished");
foreach($html->find('span[class=active.sl_notranslate]') as $aholder) {
echo $aholder . '<br>';
}
?>
Fatal error: Call to a member function find() on a non-object in ../simplehtml.php on line 5
$htmlis a string so it won't have any methods attached to it.$html = file_get_html($url);Do you know how I echo the "span" content?