<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { if (!!$errstr) { throw new Exception($errstr); } return false; } set_error_handler('myErrorHandler'); try{ //division by zero //$number = 5/0; unlink("c:\boot.bat"); $a=5+3; echo $a; } catch(Exception $ex){ echo "Dotum bi hata yapmış olmalısın mesaj bu:".$ex->getMessage(), ' : Hadi kolay gelsin sana canım'; }
You have javascript disabled. You will not be able to edit any code.