title: PHP robust include to handle errors?
body: <p>I have a PHP app "index.php" that, for various reasons, needs to run other PHP scripts by using <code>include_once</code> on that other script.  That other script isn't very stable, so is there some way to do a safe <code>include_once</code> that won't halt the caller?</p>
  
  <p>i.e.:</p>
  
  <pre><code>&lt;?php
  
  safely_include_once('badfile.php'); // MAY throw syntax error, parse error, other badness
  echo "I can continue execution after error";
  
  ?&gt;
  </code></pre>
  
  <p>(I know what a bad idea this can be, etc., rest assured this isn't production-environment stuff.)</p>