A PHP Simple error handler class

A PHP Simple error handler class can be use to intercept and log PHP execution errors.
Download

A PHP Simple error handler class Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Indrek Altpere
  • Publisher web site:
  • http://www.phpclasses.org/browse/package/4246.html

A PHP Simple error handler class Tags


A PHP Simple error handler class Description

A PHP Simple error handler class can be use to intercept and log PHP execution errors. A PHP Simple error handler class can be use to intercept and log PHP execution errors.It can enable PHP execution error logging setting the file that logs error messages.The class provides an error handler function that outputs a stack back-trace with the functions, arguments, file and lines of where an error occurs, as well the values of super-global variables $_GET, $_POST and $_FILES, and also the IP address of the current user accessing the site.The class may also enable of disable the output of error messages to Web pages and change the error reporting level.When used together with my Mysql class (or any other mysql class that calls trigger_error when there was mysql_error) it can effectively log all mysql errors with the complete stacktrace what you can inspect from the logfile later on.Plus you can identify sql injections when someone's queries keep failing with error messages.You can also specify error codes that exit the script execution plus your own callback function that will be called before exiting (good to display some nice error page to users before exiting script execution). Requirements: · PHP 5.0


A PHP Simple error handler class Related Software