FLY TO THE ZENITH OF SUCCESS

Arun Raj.R (Software Engineer)

Ready to use Error handling class in your hosted php application

,



Hello Friends,

I have wriiten a class for error reporitng in a php web application. It is a ready made one..

you have to provide your email id.

If you work in localhost it will provide you error in the same page as it occur

but in hosted application the client will only get a custom error message. The same time our error handler class will send a mail to your email id as it occure.. smile

Configuration on error.class.php

/**
* Configuration variables.
* @param email
* @param time zone
* $param application name
*/

$email = ‘arunet@gmail.com’;
date_default_timezone_set(”UTC”);
$app_name = ‘Name of the application’;

Download Source code

save this file with extension .php

How to use it ?

Just include this line in each php page

<?php include_once(”error.class.php”) ;?>

Eg.

<?php
include_once(”error.class.php”);
$xmlstr = file_get_contents(’library.xml’);
?>
http://arunrajr.com/blog/wp-content/uploads/2008/12/errorclassDownload Source code

What is Web Forgery or phishing Attack ? Tragedy With Lenovo Laptop

Write a comment

New comments have been disabled for this post.

May 2012
M T W T F S S
April 2012June 2012
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31