title: simple_html_dom.php failed to open stream: No such file or directory
body: <p>Im trying to use the simple html dom parser within WAMP - for some reason I can't get the php file to recognise the parser - I'm using example code from the parser website and it is not working - the code is as follows;</p>
  <pre><code> &lt;?php
  include_once('C:\wamp\www\reports\simple_html_dom.php');
  
  function scraping_digg() {
  // create HTML DOM
  $html = file_get_html('http://digg.com/');
  
  // get news block
  foreach($html-&gt;find('div.news-summary') as $article) {
      // get title
      $item['title'] = trim($article-&gt;find('h3', 0)-&gt;plaintext);
      // get details
      $item['details'] = trim($article-&gt;find('p', 0)-&gt;plaintext);
      // get intro
      $item['diggs'] = trim($article-&gt;find('li a strong', 0)-&gt;plaintext);
  
      $ret[] = $item;
  }
  
  // clean up memory
  $html-&gt;clear();
  unset($html);
  
  return $ret;
  }
  
  
  // -----------------------------------------------------------------------------
  // test it!
  
  // &quot;http://digg.com&quot; will check user_agent header...
  ini_set('user_agent', 'My-Application/2.5');
  
  $ret = scraping_digg();
  
  foreach($ret as $v) {
  echo $v['title'].'&lt;br&gt;';
  echo '&lt;ul&gt;';
  echo '&lt;li&gt;'.$v['details'].'&lt;/li&gt;';
  echo '&lt;li&gt;Diggs: '.$v['diggs'].'&lt;/li&gt;';
  echo '&lt;/ul&gt;';
  }
  
  ?&gt;
  </code></pre>
  <p>So far I have tried having the path as follows;</p>
  <pre><code> include_once('C:\wamp\www\reports\simple_html_dom.php');
   include_once('http://localhost/reports/simple_html_dom.php');
  
  include_once('simple_html_dom.php');
  </code></pre>
  <p>Here are the error messages I recieve</p>
  <blockquote>
  <p>) Warning: include_once(../../simple_html_dom.php): failed to open stream: No such file or directory in C:\wamp\www\reports\example_scraping_digg.php on line 2</p>
  <p>Warning: include_once(): Failed opening '../../simple_html_dom.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\reports\example_scraping_digg.php on line 2</p>
  </blockquote>
  <p>I also get another error on line 6..;</p>
  <blockquote>
  <p>Fatal error: Call to undefined function file_get_html() in C:\wamp\www\reports\example_scraping_digg.php on line 6</p>
  </blockquote>
  <p>Thanks in advance for any help you can offer - It is greatly appreciated.</p>
  <p>The file in question is located here : C:\wamp\www\reports\simple_html_dom.php
  which is why I'm so confused - Thanks again for your help</p>