Wordpress - PHP Fatal error: Call to undefined function get_bloginfo()
<p>I'm integrating an external script with my wordpress theme and I'm getting this error in one of my files:</p>

<blockquote>
  <p>PHP Fatal error:  Call to undefined function get_bloginfo()</p>
</blockquote>

<p>this script is located in</p>

<blockquote>
  <p>themes/mytheme/myscript</p>
</blockquote>

<p>And all files are included as following:</p>

<pre><code>include(WP_CONTENT_DIR."/themes/mytheme/myscript/myfile.php");
</code></pre>

<p>how can I fix it?</p>