如果不具备修改 php.ini 的权限,可以如下:

// 只需在php文件中加入这两句即可开启PHP错误提示

ini_set
("display_errors", "On"); error_reporting(E_ALL | E_STRICT);

 

 如果具备修改 php.ini 权限的话,如下即可:

# 开发错误提示
display_errors = Off 修改为 display_errors = On

# 修改错误级别
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
修改为
error_reporting = E_ALL

 

相关文章:

  • 2021-12-25
  • 2021-09-27
  • 2022-12-23
  • 2021-07-21
  • 2021-10-06
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2021-12-19
  • 2022-01-29
相关资源
相似解决方案