Never been to DZone Snippets before?

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 (See related posts)

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 on this post

MellerTime posts on Mar 20, 2006 at 15:53
If you don't like the ; maybe you'd be happier back in ASP, where you have no idea when a line's ending...

Unfortunately, then you'd have to deal with the other million ASP suckage points.
peter posts on Mar 21, 2006 at 03:53
korakot is primarily a Python coder, not ASP ;-) That said, Ruby is similar.
413x posts on Mar 29, 2006 at 13:56
Coming from the C and Perl side I don't mind the trailing semicolon. Although I like Ruby very much these day. ;)

You need to create an account or log in to post comments to this site.


Click here to browse all 5147 code snippets

Related Posts