require/include into variable
<p>I want to require/include a file and retrieve its contents into a variable.
for example:</p>

<p><strong>test.php</strong></p>

<pre><code>&lt;?php
echo "seconds passed since 01-01-1970 00:00 GMT is ".time();
?&gt;
</code></pre>

<p><strong>index.php</strong></p>

<pre><code>&lt;?php
$test=require("test.php");
echo "the content of test.php is:&lt;hr&gt;".$test;
?&gt;
</code></pre>

<p>like file_get_contents but than it should still execute the php code.
Is this possible?</p>

<p>-thank you</p>
