disable errors and warnings

In the php.ini how do you disable all errors and warnings.
Who is Participating?
FunkmotorConnect With a Mentor Commented:
This is going to sound trite, but you shouldn't be running code that's throwing errors to the user.

Trap your errors with set_error_handler, and if you have fatal errors you just can't fix you can use register_shutdown_function to set up a handler for those.

In the end the experience for your users will be much improved.
Dave BaldwinFixer of ProblemsCommented:
I always keep errors and warnings on because hiding them does not make them go away, it just makes it a mystery why things aren't working.  I would rather have customers call up and tell me something is wrong so I can fix.  Otherwise, they just go away and what good is that?

That said... look here for more info.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.