ahhh fopen a php file...fun times![]()
I am using very similar code:In footer of my application I send e-mail containing $errors_buffer to myself. Users of my website doesn't see any errors and I have a message when something goes wrong.Code:error_reporting (E_ALL);
function on_error ($num, $str, $file, $line) {
global $errors_buffer;
$errors_buffer[] = array('num'=>$num, 'str'=>$str, 'file'=>$file, 'line'=>$line);
}
set_error_handler("on_error");
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks