Page 1 of 1
[SOLVED] Hide PHP Errors
Posted: Fri Jul 29, 2005 10:58 am
by Ree
is there a way to hide PHP errors in my scripts by setting this in my scripts instead of php.ini? i want errors not to be displayed even if error displaying is allowed in php.ini.
EDIT: it's error_reporting(0). no need to reply!

Posted: Fri Jul 29, 2005 2:36 pm
by theda
Also, you can put @ in front of functions to shut them up.
Posted: Fri Jul 29, 2005 7:47 pm
by timvw
This allows you to 'hide' them for your users, but to log them in a file...
Posted: Fri Jul 29, 2005 9:10 pm
by feyd
just remember that hiding notices, warnings, and/or errors in these fashions doesn't make them go away (even turning error_reporting off/lower).. they still fire within php.