title: php evaluate code before getting file content
body: <p>I have a file B590.php which is having a lot of html code and some php code (eg logged in username, details of user). </p>
  
  <p>I tried using <code>$html = file_get_content("B590.php");</code></p>
  
  <p>But then <code>$html</code> will have the content of B90.php as plain text(with php code). </p>
  
  <p>Is there any method where I can get the content of the file after it has been evaluated?
  There seems to be many related questions like <a href="https://stackoverflow.com/questions/9466936/get-parsed-php-file">this one</a> and <a href="https://stackoverflow.com/questions/851367/how-to-execute-and-get-content-of-a-php-file-in-a-variable">this one</a> but none seems to have any definite answer.</p>