How can we hide all the PHP error message of my site

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
bui
User
Posts: 277

How can we hide all the PHP error message of my site

Post by bui »

some time when something goes wrong or get a error from database or API
we usually got a error message in our site like
fatal error or php error where our path with file are shown to my client.

Is there any way to hide this kind of error in the site.


arbei
User
Posts: 9419

Post by arbei »

You may configure error_reporting in php.ini, see https://php.net/manual/en/function.error-reporting.php.


kirondedshem
User
Posts: 642

Post by kirondedshem »

ALthough hiding them works, I strongly urge you to properly test out your code and fix those bugs instead of hiding them.
Coz some of those bugs might soon produce unwanted / incorrect results / values and you will never know since you are hiding the error messages.


Post Reply