How to have PHP display errors? (I've added ini_set and error_reporting, but just gives 500 on errors)

后端 未结 7 1494
花落未央
花落未央 2020-12-08 19:39

So, I don\'t really have any errors in my current web page, but I want to be able to see an error when they pop up, instead of the HTTP 500 error page. I googled around a bi

相关标签:
7条回答
  • 2020-12-08 20:17

    Just write a following code on top of PHP file:

    ini_set('display_errors','on');
    
    0 讨论(0)
提交回复
热议问题