Development,  PHP

Showing all errors and warnings

Sometimes, when you write PHP code, you may need to see every single error, warning or even notice. And this is a very good practice in your development environment. If you can write your code and after all tests there are not a single notice, you may think your code is ready. Of course it doesn’t mean it is good, it’s different thing. But suppressing (by handling, not by @!) all errors, warnings and notices are a very good first step.


How to make PHP show all errors and warnings?
It’s very easy:

And that’s all. Oh no, one more thing. Do not enable this on production server! Every error on your users screen is a very very bad thing.

Leave a Reply

Your email address will not be published. Required fields are marked *