PHP Classes

Error Handler: Output PHP execution errors information

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 3,798 All time: 852 This week: 60Up
Version License Categories
error_handler 1.0BSD LicenseDebug
Description 

Author

This class is meant to assist in debugging of PHP scripts by handling execution errors outputing formatted error context information.

It includes utitilty functions to show the source code where the errors appear.

Picture of Cezary Tomczak
Name: Cezary Tomczak <contact>
Classes: 1 package by
Country: Poland Poland

 

Details

INSTALL ------- Edit "error.tpl" and change variable $showSourceUri (path to "showSource.php") Include "prepend.php" at the beginning of your script. FILES ----- example1.html - example of displaying an error example2.html - example of displaying source of the file where the error appeared Handler.php - ErrorHandler class showSource.php - show source of the file, highlights the line where the error appeared error.tpl - template for displaying errors

  Files folder image Files (7)  
File Role Description
Accessible without login Plain text file error.tpl Aux. template for displaying errors
Accessible without login HTML file example1.html Output example of displaying an error
Accessible without login HTML file example2.html Output example of displaying source of the file where the error appeared
Plain text file Handler.php Class ErrorHandler class
Accessible without login Plain text file prepend.php Example Prepend the script
Accessible without login Plain text file readme.txt Doc. Readme
Accessible without login Plain text file showSource.php Aux. show source of the file, highlights the line where the error appeared

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,798
This week:0
All time:852
This week:60Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:72%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1181