Show all PHP errors

To show all PHP errors add the following line to the PHP document which indicates to have problems.

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

To show PHP parse errors as well you need to modify your php.ini file and change the following line:

display_errors = on