PHP Classes

Error Handler: Output PHP execution errors information

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 3,797 All time: 852 This week: 571Up
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
Age: ???
All time rank: 84124 in Poland Poland
Week rank: 4338 Down100 in Poland Poland Down

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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,797
This week:0
All time:852
This week:571Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:72%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1163