ini_set("display_errors ","1");    //显示错误
error_reporting(E_ALL);            //设置错误运行级别

注意:此方法有时候在浏览器中运行代码,错误不会显示,那要怎么调试呢???

另一种方式:直接在命令行中运行

php deme.php

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-08-14
  • 2021-11-13
  • 2021-07-05
  • 2022-12-23
  • 2021-05-03
猜你喜欢
  • 2022-01-26
  • 2021-04-20
  • 2022-12-23
  • 2021-12-31
  • 2021-07-29
相关资源
相似解决方案