Hide error messages in PHP

Sometimes when we tryto edit or do a code PHP has problems Error light as seen notif at the moment code is performed.

In this tutorial, the author wants to share how to hide the error message in the PHP file.
For example, if an error message like:

Note: Undefined variable: data in /home/inwepo.com/public_html/test/index.php in line 3

To hide it, just add a little code to the file Error are as follows:

// Disable all bug reports
error_reporting (0);

Done, good luck.

Leave a Reply

Your email address will not be published.