Tuesday, July 2, 2013
Disabling PHP or MySQL Errors Display on Webpages
Managing these error, warning, etc are very easy in php language. you can use the function error_reporting(). it takes following parameters:
ER_WARNING, ER_ERROR, ER_NOTICE,
By giving any one of the above will enable it. but we want to disable them. so we have to put a '~' symbol (NOT Operation) before them. You can manage multiple items by performing OR operation. The Examples are shown below: