PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2004-04-21 (12 years ago) RSS 2.0 feedStarStarStarStar 62%Total: 3,786 All time: 818 This week: 1,040Down
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: 78223 in Poland Poland
Week rank: 1356 Down35 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,786
This week:0
All time:818
This week:1,040Down
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:72%StarStarStarStar
Documentation:77%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:755