PHP errors, notices, and warnings may be turned off by adding the following code within a website’s .htaccess file:
Besides potentially interfering with a website’s visual appearance, it is generally not a good idea to display errors, notices, and warnings within a production environment for security reasons, since the error messages may provide useful information on a server / website’s configuration, and thus how to circumvent its security measures.
php_flag display_errors off
Besides potentially interfering with a website’s visual appearance, it is generally not a good idea to display errors, notices, and warnings within a production environment for security reasons, since the error messages may provide useful information on a server / website’s configuration, and thus how to circumvent its security measures.
No comments:
Post a Comment