title: Debugging PHP Template Code in WordPress
body: <p>I notice that the slightest error in PHP template code - like a missing ";" at the end of a statement - results in an unhelpful "Server error" screen when the code tries to run, without leaving any clue about what's wrong. I have </p>
  
  <pre><code>ini_set('display_errors', 1);
  error_reporting(E_ALL);
  </code></pre>
  
  <p>at the top of the script but that doesn't seem to kick in until the code at least parses. </p>
  
  <p>So I'm wondering if there's a PHP lint function somewhere, so you could copy your code between a <code>&lt;PHP</code> and <code>?&gt;</code>, drop it into this lint page and it would tell you about a missing ";", an unmatched  "(" or "{", etc.</p>