php: file_get_contents is stripping out php code
<p>I'm attempting to file_get_contents and output php code as a string <em>without</em> being rendered. The idea is to grab the raw un-rendered file contents so they can be edited in a textarea...</p>

<pre><code>// file "foo.php" I'm needing the contents of
&lt;h1&gt;foo&lt;/h1&gt;
&lt;? include 'path/to/another/file' ?&gt;

// php file that's calling the file_get_contents
&lt;?php
    echo file_get_contents('foo.php');
?&gt;
</code></pre>

<p>The above code is stripping out the php include in foo.php which outputs:</p>

<pre><code>&lt;h1&gt;foo&lt;/h1&gt;
</code></pre>

<p>Does anyone know how I can get foo.php contents as a raw un-rendered string where output will be?:</p>

<pre><code>&lt;h1&gt;foo&lt;/h1&gt;
&lt;? include 'path/to/another/file' ?&gt;
</code></pre>

<p>Any help is greatly appreciated!</p>
