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()使用错误,定义一个不存在的类型

 

相关文章:

  • 2021-12-20
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-11-01
  • 2021-04-17
猜你喜欢
  • 2021-12-02
  • 2021-12-16
  • 2022-01-08
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案