title: Handling apache errors - options
body: <p>Within httpd.conf or vhosts file it’s possible to:</p>
  
  <ul>
  <li>log all errors to a log file using <a href="http://httpd.apache.org/docs/1.3/mod/core.html#errorlog" rel="nofollow">http://httpd.apache.org/docs/1.3/mod/core.html#errorlog</a></li>
  <li>forward a user on to a custom error page depending on what the error code is <a href="http://httpd.apache.org/docs/2.0/mod/core.html#errordocument" rel="nofollow">http://httpd.apache.org/docs/2.0/mod/core.html#errordocument</a></li>
  </ul>
  
  <p>Are there any other alternatives to dealing with apache error? What i'd really like to do is somehow get hold of an apache error when it occurs in php. </p>
  
  <p>(We're looking to build a tool which monitors errors that occur globally on our servers in a web based interface (using php). Currently I'm thinking of logging errors to a log file and then use php to monitor this file for changes and parse it in to something usable with PHP.)</p>