title: How to run php code from file_get_contents or file in a function
body: <p>I am designing my own MVC pattern to ease the process of creating homepages. My templating system needs my controller class to output my views. This means I have to output the file through a php function. I have been searching for some a while now and can't seem to find a solution. </p>
  
  <p>How can I, through a PHP function, run a string representing some source code ("&lt; ?", "&lt; ?php", "? >" and so on) as php? Eval would not take my &lt; ? signs (and I read that function is crap for some reason).</p>