内置函数:

1.error_log() ,第三个参数不能是绝对路径,必须是相对路径。
写入文件:

error_log("warn:\nthis is a warn!\n",3,"1.txt");

发送邮件:

error_log("A custom error has been triggered",1,"someone@example.com","From: webmaster@example.com");

 

2.trigger_error(),用于在用户指定的条件下触发一个错误消息。它与内建的错误处理器一同使用.

trigger_error("A custom error has been triggered");

 

相关文章:

  • 2021-10-02
  • 2022-01-17
  • 2021-09-18
  • 2022-12-23
  • 2021-12-02
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2021-12-02
  • 2021-12-26
  • 2022-12-23
  • 2021-10-27
  • 2021-06-10
  • 2021-09-01
相关资源
相似解决方案