php hide ALL errors

前端 未结 5 2202
自闭症患者
自闭症患者 2020-12-01 03:57

what are the best practises for hiding all php errors? As I don\'t want ERRORS to show to the user.

I\'ve tried using the .htacess by p

5条回答
  •  天命终不由人
    2020-12-01 04:24

    Use PHP error handling functions to handle errors. How you do it depends on your needs. This system will intercept all errors and forward it however you want it Or supress it if you ask it to do so

    http://php.net/manual/en/book.errorfunc.php

提交回复
热议问题