PHP Classes

File: test-error.php

Recommend this page to a friend!
  Classes of Frank Mullenger   Error Handler Class   test-error.php   Download  
File: test-error.php
Role: Example script
Content type: text/plain
Description: Error handler test
Class: Error Handler Class
Handle PHP scripts execution errors
Author: By
Last change:
Date: 15 years ago
Size: 470 bytes


Class file image Download
//setting error reporting to off appears to be optional...

$handler = new error_handler("",1,6,NULL,'/home/username/global/error_logs/');

set_error_handler(array(&$handler, "handler"));

    // undefined constant, generates a notice
//generates a warning
$v = 7/0;