PHP Classes
Icontem

Class: Simple error handling class


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Indrek Altpere  >  Simple error handling class  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple error handling class Support forum
Base name: errormanager
Description: Intercept and log PHP execution errors
Related top rated classes: , , ,
Version: -
Required PHP version: 5.0
License: Freeware
All time users: 952 users
All time rank: 2574
Week users: 4 users
Week rank: 1837
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Dependents   Applications   Files Files  

Author

Picture of Indrek Altpere
Name: Indrek Altpere <e-mail contact>
Published packages: 3 Browse this author's classes Browse this author's classes
Country: Estonia Estonia - PHP jobs in Estonia
Home page: http://www.upload.ee/
Age: 23
All time rank: 1038
Week rank: 671

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Logging Log generation and processing View top rated classes

Detailed description

This class can be use to intercept and log PHP execution errors.

It can enable PHP execution error logging setting the file that logs error messages.

The class provides an error handler function that outputs a stack back-trace with the functions, arguments, file and lines of where an error occurs, as well the values of super-global variables $_GET, $_POST and $_FILES, and also the IP address of the current user accessing the site.

The class may also enable of disable the output of error messages to Web pages and change the error reporting level.

When used together with my Mysql class (or any other mysql class that calls trigger_error when there was mysql_error) it can effectively log all mysql errors with the complete stacktrace what you can inspect from the logfile later on.
Plus you can identify sql injections when someone's queries keep failing with error messages.

You can also specify error codes that exit the script execution plus your own callback function that will be called before exiting (good to display some nice error page to users before exiting script execution).

User ratings

There are not enough user ratings to display for this class.

Packages that need this class

Class Dependency Why it is needed
ORM mapping class(like Hibernate), maps database table rows to objects
Recommended
To be able to log any mysql errors and erros that have occured in BaseObject class itself

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file ErrorManager.php Class Main class file
Plain text file test.php Example testing example
Download all files: errormanager.tar.gz errormanager.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products