PHP Show All Errors

Posted on Posted in Advice, PHP, Programming

I have Googled this code snippet probably hundreds of times over the years. But, here it is! Paste this at the top of a PHP page to see all errors on screen during debug:

//show all errors for debug
ini_set(‘display_errors’, ‘1’);