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);
1ini_set('display_errors', 1);
2ini_set('display_startup_errors', 1);
3error_reporting(E_ALL);
4
1//PHP functions
2ini_set('display_errors', 1);
3ini_set('display_startup_errors', 1);
4error_reporting(E_ALL);
5
6//.htaccess
7php_flag display_startup_errors on
8php_flag display_errors on
9php_flag html_errors on
10php_flag log_errors on
11php_value error_log /home/path/public_html/domain/PHP_errors.log
1ini_set('display_errors', 1);
2ini_set('display_startup_errors', 1);
3error_reporting(E_ALL);
4//OR
5ini_set('display_errors', 1);
6ini_set('display_startup_errors', 0);
7error_reporting(E_ALL & ~E_NOTICE);