disable errors and warnings

In the php.ini how do you disable all errors and warnings.
stargateatlantisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FunkmotorCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
http://us2.php.net/manual/en/function.error-reporting.php
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.