DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Let Php Show All Errors
I have wondered why my php script doesn't show errors like it did before. It seems my server admin has default config set not to show the errors. Here's how to override it.
error_reporting(E_ALL); ini_set('display_errors', '1');
BTW, it's really a pain to code in a language that demand a ';' after every line.
Comments
Maria Bales replied on Fri, 2012/08/10 - 3:00am
There is a great guide to implementing this plus how to make the system log the errors instead of displaying them and code specific for drupal, wordpress and other cms systems
Snippets Manager replied on Mon, 2011/08/01 - 4:05am
Snippets Manager replied on Tue, 2009/09/22 - 2:21am
Snippets Manager replied on Tue, 2009/09/22 - 2:21am
Hans Zimmer replied on Tue, 2006/03/28 - 10:16am
Snippets Manager replied on Mon, 2012/05/07 - 1:21pm
Chris Meller replied on Mon, 2006/02/20 - 3:02am