[eluser]Unknown[/eluser]
I am having problems switching off error messages in production code.
Here is a part of index.php
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
ini_set('display_errors', 'Off');
break;
default:
exit('The application environment is not set correctly.');
}
}
ini_set('display_errors', 'Off'); should do it .... or might it conflict with php.ini settings on the production server ?
Any thoughts ?
THanks.