1// Add these lines somewhere on top of your PHP file:
2ini_set('display_errors', 1);
3ini_set('display_startup_errors', 1);
4error_reporting(E_ALL);
1//PHP functions - add the lines in the above of page
2
3ini_set('display_errors', 1);
4ini_set('display_startup_errors', 0);
5error_reporting(E_ALL & ~E_NOTICE);