Forcing PHP to show errors
Running PHP on a production server with no visible error messages? Â This is good for security, but a real pain when debugging.
Calling ini_set(‘display_errors’, 1); somewhere important does the trick. Â Just remember to remove it when you’re done.
In my mantis install, I had to put these two lines in constant_inc.php:
date_default_timezone_set(‘Australia/Melbourne’);
ini_set(‘display_errors’, 1);
To fix the default timezone warning, and display errors when they happened.
