title: Delete File Even A Fatal Error
body: <p>I am trying to create an online php editor .Alternative to eval , i am doing it as </p>
  
  <blockquote>
    <ol>
    <li>Get the codes by form post (having an iframe as target) request and save it in a temp file</li>
    <li>including that temp file ,so codes gets executed</li>
    <li>deleting that temp file </li>
    </ol>
  </blockquote>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>&lt;?php
  session_start();
  if(isset($_POST['winCode']))
  {
    $data=$_POST['winCode'];
    $_SESSION['data']=$data; 
    // creating a $_SESSION['data'] ,so that
    // user can maximize the resultant iframe
  }
  file_put_contents(session_id()."_runphp.php",$_SESSION['data']);
  include(session_id()."_runphp.php");//generate output
  unlink(session_id()."_runphp.php");//delete temp file
  ?&gt;
  </code></pre>
  
  <p>This is working well , but when a user generates error by his codes ..unlink doesn't work .. <em>How can i set unlink to run even a fatal error occurs.</em></p>