I want to keep errors out of my PHP output stream. I only want output of things I explicitly echo.
Looking at my php.ini, is “display_errors” the only configuration I need to change?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of modifying
php.ini, you can call this at a very early part of your code:Note that this means fatal errors will die silently as well, so it makes it a little difficult to debug at first.