Get all PHP errors/warnings/… that occurred during the current request

后端 未结 5 1640
野性不改
野性不改 2021-02-13 18:07

Setting the directive display_errors to true (while having error_reporting set to E_ALL) prints all errors that occured durin

5条回答
  •  梦谈多话
    2021-02-13 18:51

     ini_set('display_errors', 1);
     ini_set('display_startup_errors', 1);
     error_reporting(E_ALL);
    
      or
       set your php.ini with this line:
       display_errors=on
    

提交回复
热议问题