title: Check for PHP Syntax errors?
body: <p>Well, I have run into a bit of a pickle here.  I am needing to check some PHP for syntax errors.  I noticed this bit that needs to run from the commandline:</p>
  
  <p><code>php -l somefile.php</code></p>
  
  <p>However, is there a way to run this from within a PHP file itself?  I've been looking and have think that I can use <code>parse_str</code> function somehow to accomplish this by entering it into a $_GET, but can't quite understand how this works.</p>
  
  <p>Someone else told me to use <code>token_get_all()</code> php function to determine this.</p>
  
  <p>But I can't figure out how to do this with any approach?  Can anyone here give me some sample code to get started perhaps??  I don't think using <code>eval()</code> is the way to go, although I had an <code>eval($code)</code> working, but don't think I should run the script if there are PHP syntax errors.</p>
  
  <p>Any help on this is greatly appreciated, as always!</p>