error display 0 php

Solutions on MaxInterview for error display 0 php by the best coders in the world

showing results for - "error display 0 php"
Gaëlle
23 Jun 2018
1
2// Turn off all error reporting
3error_reporting(0);
4
5// Report simple running errors
6error_reporting(E_ERROR | E_WARNING | E_PARSE);
7
8// Reporting E_NOTICE can be good too (to report uninitialized
9// variables or catch variable name misspellings ...)
10error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
11
12// Report all errors except E_NOTICE
13error_reporting(E_ALL & ~E_NOTICE);
14
15// Report all PHP errors
16error_reporting(E_ALL);
17
18// Report all PHP errors
19error_reporting(-1);
20
21// Same as error_reporting(E_ALL);
22ini_set('error_reporting', E_ALL);