How to display PHP errors in code output?

后端 未结 3 2064
离开以前
离开以前 2020-12-03 00:59

When executing a PHP page through browser , we will just get the output but not the errors in code.

how can i view the errors occurred by the code in the backend??

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 01:59

    ini_set('display_errors', 1);
    error_reporting(E_ALL ^ E_NOTICE);
    

提交回复
热议问题