PHP错误处理之将错误日志保存在系统文件中
<?php ini_set('display_errors',0); ini_set('log_errors',1); ini_set('error_log','sys_log'); echo $test;//输出一个未定义的变量 echo '<hr/>'; settype($var,'king');//函数settype()使用错误,定义一个不存在的类型
PHP错误处理之将错误日志保存在系统文件中
<?php ini_set('display_errors',0); ini_set('log_errors',1); ini_set('error_log','sys_log'); echo $test;//输出一个未定义的变量 echo '<hr/>'; settype($var,'king');//函数settype()使用错误,定义一个不存在的类型