How do get PHP Errors to display?

To get PHP errors to display without modifying php.ini add the following codes to the top of the php file:

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

However, it won’t show parse errors. To show parse errors modify your php.ini with this line:

display_errors = on

You may also like...

Leave a Reply

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

*