<?php class mysafe{ public $logname; public $isshwomsg; function __construct(){ set_error_handler('MyError',E_ALL); //----- } function MyError($errno, $errstr, $errfile, $errline){ echo "Error number: [$errno],error on line $errline in $errfile"; exit; } function wlog($lo