Why doesn't file_get_contents load phpscript properly in this example?
<p>I wrote a bit of code, that in essence does the following:</p>

<pre><code>&lt;div id="thisDiv"&gt;
&lt;/div&gt;

&lt;?php
echo "&lt;script&gt;document.getElementById('thisDiv').innerHTML = '".addslashes(str_replace(array("\n", "\r"), "", file_get_contents('/path/to/file/example.php'')))."';&lt;/script&gt;";
?&gt;
</code></pre>

<p>However, I noticed that this doesn't work: nothing enclosed in  <code>&lt;?php ?&gt;</code> tags inside example.php makes their way to the div. Why is this and is their a way around it?</p>
