471,874 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,874 software developers and data experts.

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 1643
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,658 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
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.