Display_errors setting and page level error reporting settings
IN our php.ini file there is a setting saying
With this we can display all types of error and this can be changed to
This will not display any error message to visitors.
Local or script level settingsAt the script level of any php page we can set the value like this which will change the php.ini setting , here is an example.
This will give this error message
You may not like this error message to be displayed to your visitors so we can add error_reporting function like this.
No error message will be displayed with the above code.
Development environmentWe should display all types of errors in a development environment.
Subscribe to our Youtube Channel here
This article is written by plus2net.com team. https://www.plus2net.com