title: Simple html dom with wordpress
body: <p>i would like to use html simple dom width wordpress. The problem is when i add :</p>
  
  <pre><code>require('../wp-blog-header.php');
  </code></pre>
  
  <p>The script return an error: <code>Fatal error: Call to a member function find() on a non-object in /home/labonnevisite/www/simpledom/simple_html_dom.php on line 1113</code></p>
  
  <p>When i delete: <code>require('../wp-blog-header.php');</code> my script works fine</p>
  
  <p>This is my script:</p>
  
  <pre><code>require('../wp-blog-header.php'); require_once 'simple_html_dom.php';
  
  $html-&gt;load_file('http://www.urlofwebsite.com'); 
  foreach($html-&gt;find('a.name') as $e) { $link = $e-&gt;href; echo $link . '&lt;br&gt;'; }
  </code></pre>