469,076 Members | 1,873 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

Pros/Cons of turning off error warnings?

384 256MB
What would be the pros/cons of turning off error warnings in the website pages like below? What are peoples opinions on this approach?
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. error_reporting(0);
  3. ?>
Oct 28 '09 #1

✓ answered by Markus

@ziycon
You should only really have error reporting on during the development phase. After that you should consider logging errors to a file.

3 1531
Markus
6,050 Expert 4TB
@ziycon
You should only really have error reporting on during the development phase. After that you should consider logging errors to a file.
Oct 28 '09 #2
Dormilich
8,651 Expert Mod 8TB
@Markus
and/or sending you the error report (by mail).
Oct 28 '09 #3
TheServant
1,168 Expert 1GB
@Dormilich
Yeah, errors shouldn't be coming up on your published site for others to see, but you need to hear about errors as soon as possible so you can fix 'em. Email is the best way so you don't have to check the log file (which is also good to have) every day.
Oct 28 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by Axehelm | last post: by
5 posts views Thread by Fred | last post: by
8 posts views Thread by Steve Jorgensen | last post: by
3 posts views Thread by Andrea | last post: by
24 posts views Thread by Maric Michaud | last post: by
62 posts views Thread by estherschindler | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.