title: How to include GET & POST data in PHP error log
body: <p>Is there a way to have <code>PHP</code> log errors to a file or email me errors <code>INCLUDING $_POST[]</code> &amp; <code>$_GET[]</code> and <code>$_SERVER[]</code> data?</p>
  
  <p>Right now I get a log of <code>PHP FATAL</code> and <code>WARNING</code> errors and <code>404 NOT_FOUND</code> errors but it's hard to debug some errors without knowing things like user input and the referrer.</p>
  
  <p>Thanks</p>