PHP Classes

ErrorHandler: enhanced customizable error handler implementation

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 13,638 All time: 78 This week: 138Down
Version License Categories
errorhandler 1.0BSD LicenseDebug, Tools


This class is a powerful wrapper for PHP error-reporting features. It helps when developing new scripts and monitoring sites in production state, too.

It has several enhancements (previously known as report layouts):

* SOURCE = prints the source code fragment where the error encountered,

* CONTEXT = prints variable context around error source,

* SILENT mode = suppresses error-messages

* REPLACE page = displays an arbitrary HTML or PHP page in case of error (useful in production state),

* LOGGING = log errormessages wherever you want (multiple destination also allowed),

* Autodetecting Target Logging = log target can vary from file to file automatically

* CONSOLE window = error messages will be displayed in a separate browser window not to break up your pretty page design

* Error TRAPPING = catching errors for runtime generated codes

Each report can be enabled, disabled or changed at run-time.

Picture of Gyozo Papp
Name: Gyozo Papp <contact>
Classes: 2 packages by
Country: Hungary Hungary
Age: 47
All time rank: 1202 in Hungary Hungary
Week rank: 332 Down3 in Hungary Hungary Down

  Files folder image Files  
File Role Description
Plain text file Class class implementation
Plain text file ErrorHandler.ini Conf. the configuration .ini file
HTML file manual.html Doc. instructions how to use ErrorHandler (1.3 version - OUTDATED)
HTML file onerror.html Appl. example for REPLACE page (static HTML)
Plain text file Appl. example for REPLACE page (dynamic)
Accessible without login Plain text file readme.1st Lic. licence and changelog
Plain text file reference.txt Doc. description about method usage (2.0 version)
Plain text file try.php Example simple script to test and manifest ErrorHandler

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:78
This week:138Down
 User Ratings  
 All time