Karl Groves wrote:
> If I use error_reporting(0); somewhere in a script, it is automatically
> restored to defaul (as defined in php.ini) after that particular script,
> right?
Yep -- it only applies until the end of that particular script.
If you want to turn off error reporting more globally, there are several
php.ini settings for this. The equivalent php.ini setting to the
error_reporting() function is the error_reporting setting, but my personal
favourite is the display_errors setting. This prevents errors from being
displayed to the browser, but still allows them to be logged to your web
server error log. (Error messages can occasionally reveal security issues.
Preventing them from being displayed to the browser is security through
obscurity; but better than nothing.)
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~
http://tobyinkster.co.uk/contact >> Stay informed about: error_reporting(0);