Well, that made me giggle a bit, using error reporting is for debugging purposes, it allows me to quickly find and fix problems.
When you are in a live environment, your server should be configured only for internal logging, and not for direct output, so basically you will need to disable error output in your php.ini .
display_errors = Off
But while you are in your test environment, this stack is just a tool that will help you and customize.
If errors occur in a live environment, they will be logged, so you should always check your log files and then correct them.
People may indicate that you can manage errors in your PHP application, but by personal preference, I think this is the wrong way to do this, setting up the INI and configuration files for your web server and MySQL / MsSQL will lead to more sharp control.
If your application is a public application, then it would be nice to handle errors in the application, since a large percentage of clients may be on shared hosting and not have full access to server configurations.
RobertPitt Jun 23 2018-11-11T00: 00Z
source share