title: Class 'simple_html_dom' not found on WordPress
body: <p>I'm trying to include simple html dom parser into the search.php on Wordpress,
  I added the file simple_html_dom.php in the theme folder and include it in functions.php like this</p>
  
  <pre><code>require_once(TEMPLATEPATH.'/simple_html_dom.php');
  </code></pre>
  
  <p>this instruction return 1 when using a var_dump
  When execution the search I got this error</p>
  
  <blockquote>
    <p>Class 'simple_html_dom' not found</p>
  </blockquote>
  
  <p>Edit: I didn't announce that I copied str_get_html function on functions.php from simple_html_dom.php
  When I removed the function and use str_get_html on function.php
  the error will be </p>
  
  <blockquote>
    <p>Call to undefined function str_get_html()</p>
  </blockquote>
  
  <p>The project is hosted on <a href="https://c9.io" rel="nofollow noreferrer">https://c9.io</a> and use Git.
  I will be grateful if someone help me to fix this error.</p>