title: Fatal error: Call to a member function find() on a non-object
body: <p>I am new to php.<br>
  I getting</p>
  
  <blockquote>
    <p>Fatal error: Call to a member function find() on a non-object error,</p>
  </blockquote>
  
  <p>I included simple_html_dom.php</p>
  
  <pre><code>&lt;?php
  include 'simple_html_dom.php';
  $htm = file_get_html('http://www.thatscricket.com');
  
  $es = $htm-&gt;find('div[class=score_card_display_below_links]');
  
  $value = $es[0]-&gt;href;
  
  $link = "http://www.thatscricket.com/$value";
  
  $html = file_get_html('$link');
  
  $scr = $html-&gt;find('span');
  
  echo "$scr";
  ?&gt;
  </code></pre>