PHP Classes

PHP Fatal Error Handler: Handle fatal PHP errors redirecting to a page

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
StarStarStar 57%Total: 663 All time: 4,862 This week: 660Up
Version License PHP version Categories
handle-error 1Artistic License5.0PHP 5, Debug, Systems administration, L...
Description 

Author

This class can handle fatal PHP errors redirecting the current request to a page.

It sets the PHP options to display the errors on page with HTML code that includes a meta redirection tag to a configurable error handling page.

The class can also includes functions to send a email message to a site administrator that can be called from the error handling page script.

Innovation Award
PHP Programming Innovation award nominee
May 2013
Number 4
One way to handle PHP fatal errors is to register a PHP shutdown function, however you cannot do everything inside a shutdown function.

This class allows handling fatal errors in a separate script on by outputting browser redirect HTML tags.

Manuel Lemos
Picture of Alexsandro Souza
  Performance   Level  
Name: Alexsandro Souza <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: 36
All time rank: 1954127 in Brazil Brazil
Week rank: 195 Up15 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file erro.php Example testing
Plain text file HandleError.php Class Class source
Accessible without login Plain text file index.php Aux. testing
Accessible without login Plain text file tratarErro.php Example hanle error

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:663
This week:0
All time:4,862
This week:660Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1663
 
good.
11 years ago (Daniele Cruciani)
67%StarStarStarStar