title: SIMPLE HTML DOM Fatal Error Call to a member function find() on a non-object
body: <p>Im using Simple HTML DOM Library and im getting error </p>
  
  <p>Fatal error: Call to a member function find() on a non-object in /home/rodingo/public_html/crawler/music.php on line 14</p>
  
  <p>However it is working fine on localhost but causing problem on my Dedicated Server. cURL, fopen everything is enabled but still.</p>
  
  <pre><code> include('includes/simple_html_dom.php');
  
  $html = file_get_html('http://mp3skull.com/mp3/'.$mp3name.'.html');
  $list = array();
  echo $html;
  foreach ( $html-&gt;find('div#song_html ') as $e ) {  // &lt;-- LINE 14
   $song = array();
      $song['bit'] = preg_replace('!\s+!', ' ',$e-&gt;find('div', 0)-&gt;plaintext);
      $song['title'] = preg_replace('!\s+!', ' ',$e-&gt;find('div', 1)-&gt;plaintext);
      $song['url'] = preg_replace('!\s+!', ' ',$e-&gt;find('a', 0)-&gt;href);
      $list[] = $song;
  }
  </code></pre>