Welcome Guest, Not a member yet? Register   Sign In
switching off error messages
#1

[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.



Messages In This Thread
switching off error messages - by El Forum - 05-23-2013, 07:16 AM
switching off error messages - by El Forum - 05-23-2013, 08:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB