How can you enable errors in PHP ?

Last updated 4 years, 11 months ago | 1273 views 75     5

Tags:- PHP

Enable errors in PHP

There are two ways to enable error reporting in your PHP scripts:

1. You can add the following function in the the script:

error_reporting(E_ALL);

2. You can add the following option in your website's php.ini file:

error_reporting = E_ALL