Warning when using <?php include 'thefile.php'; ?>
<p>Would need some more help with the </p>

<p>Did ask a question how to import some code with php, in this case it's a sidebar that will be used on some of the pages on a website, It's wordpress and it can execute php from post / page's and have also tested directly in the main code</p>

<p>When i did ask the question the best and most easy thing would be to create a file and use include</p>

<p>Did create thefile.php and did put it in the theme dir where all other .php file's used is, In the file i did just put some basic html like </p>

<pre><code>&lt;div id=the-id"&gt; 
      &lt;p&gt; a test text &lt;/p&gt;
&lt;/div&gt; 
</code></pre>

<p>Then i did put the include code writen as below in my template</p>

<pre><code>&lt;?php include 'thefile.php'; ?&gt;
</code></pre>

<p>Doing this i see my text "a test text" but also get several warning's </p>

<pre><code> Warning: include(/wp-content/themes/thetheme/thefile.php) [function.include]:       failed to open stream: No such file or directory in /home/cplac/public_html/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 22
</code></pre>

<p>And also this</p>

<pre><code>Warning: include() [function.include]: Failed opening ‘/wp-content/themes/thetheme/thefile.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php:/home/cplac/public_html/wp-content/plugins/wpsyndicator:/home/cplac/public_html/wp-content/plugins/wp-external-links/includes/phpQuery/:/home/cplac/public_html/wp-content/plugins/wp-external-links/includes/phpQuery/plugins/’) in /home/cplac/public_html/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 22
</code></pre>

<p>Someone that can help me out whit this ? Have tested both in pages but also in the theme files and so on !</p>
