PHP error_reporting

error_reporting - Sets which PHP errors are reported

<?php error_reporting(E_ALL); ini_set(display_errors, 1);?>
function error_handler($number, $message, $file, $line){$error = array( type => $number, message => $message, file => $file, line => $line );
 echo <pre>; print_r( $error ); echo </pre>;
 /* send email */


error_reporting CLASS


class ERROR{ public static function captureNormal($number,$message,$file,$line){ $error = array(type =>$number,message=>$message,file=>$file,line=>$line);$mes = var_export($error,true); }}

Related Posts

PHP trim words, PHP date, Validate an E-Mail Address with PHP, How To Clean Special Characters From PHP String, URLs PHP .htaccess, How to add days, weeks, months to date in PHP, Replace Link Value PHP,