CodeIgniter Forums

Full Version: display_errors with APACHE 2.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]gabybob[/eluser]
hello

you had asked that the errors will not appear on the screen:

Here's why the PB, you are using a recent version of Apache that manages the display_errors to Off by default, it's silly but that's how

two options available to you to overcome this PB

1) at the level of force at the root of index.php CI
Code:
switch (ENVIRONMENT)
{
case 'development':
ini_set ('display_errors', 1);
error_reporting (E_ALL);
break;

case 'testing':
case 'production':
ini_set ('display_errors', 0);
error_reporting (0);
break;

default:
exit ('The implementation environment is not set Correctly.');
}

2) change the config file php.ini

do not forget to restart the apache server

bye
Gabriel