Agreed.
]]>ini_set(‘display_errors’, ‘on’);
error_reporting(E_ALL);
I think it’s important to mention that display_errors should only be set to ‘on’ under development servers and should always be ‘off’ under production.
Also, display_errors will not show parse errors by default. If you want PHP to render parse errors on your development server, you’ll need to set the error_reporting directive to an appropriate level.
I personally find it easier to leave them both set to the default, secure setting as they are shipped with PHP. When in development, I include a ‘development.php’ file which has the following content.
Cheers,
Mike G.
…
]]>