Display All Errors and Warnings in PHP

I find myself googling this up waaaaaaay too often, but there’s nothing unusual about that. I usually put this at the top of my code during development.

[note color=”#DDD”] [/note]

Here’s another handy tip I picked up somewhere: If you’ve got a parse error on your page, then you might be left staring at a white screen wondering what the hell is going on. Where are the errors I just told it to show me?! The solution is is to create a simple php page with no errors, then include your real file into that page. This way you’ll always see the error message which will hopefully help you track down that stray semi-colon.   :)

[note color=”#DDD”]show_errors.php
[/note]
Category(s): Googling for Answers, Web Development
Tags: ,

Leave a Reply

Your email address will not be published.

* Copy this password:

* Type or paste password here: