fbpx

Show All Errors PHP

In order to show all errors in a PHP file, you simply need to add the following two lines to your PHP file. Then, PHP will start to throw the error messages back to you, making debugging infinitely easier.

Make sure to remove these lines when you push your PHP file to production, as it is a security risk.

error_reporting(E_ALL);
ini_set('display_errors', 1);

Leave a Reply

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