PHP production server - turn on error messages

后端 未结 4 1568
死守一世寂寞
死守一世寂寞 2020-11-27 21:43

This question has been asked before in a more general way. I want to display error messages on a particular page on my production server, and I do not have access to the

4条回答
  •  星月不相逢
    2020-11-27 22:18

    A different method all together would be to register an error handler with: set_error_handler

    This way, you can chose what to do with the errors: Mail them to admin, display friendly error message, log to file/db, ...

提交回复
热议问题