title: Get variable in file_get_contents('file.php')
body: <p>I have a file called file.php with this content:</p>
  
  <pre><code>&lt;?php
  
  $foo = 'hello';
  
  ?&gt;
  &lt;div id="fileContent"&gt;
     &lt;?php echo($foo) ?&gt;
    ...some content here
  &lt;/div&gt;
  </code></pre>
  
  <p>In other file called result.php, I call the file.php with the method file_get_contents():</p>
  
  <pre><code>&lt;div id="resultContent"&gt;
    &lt;?php echo(file_get_contents('file.php')) ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But, I can´t print the internal variable $foo in my result.php file. Only appears as:</p>
  
  <pre><code>&lt;!--?php echo($q); ?--&gt;
  </code></pre>
  
  <p>Can I get this result? //print hello in the result.php file</p>