Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,859 questions

51,780 answers

573 users

How to use error_reporting() to set which PHP errors are reported in PHP

2 Answers

0 votes
// Turn off all error reporting
error_reporting(0);
   
// Turn on a list error
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
   
// Turn on all errors except E_NOTICE
error_reporting(E_ALL ^ E_NOTICE);
   
# Turn on all error reporting
error_reporting(E_ALL);
   
/*
run:

 
*/

 



answered Apr 14, 2016 by avibootz
0 votes
error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR |
                E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);

/*
run:

*/

 



answered Dec 9, 2018 by avibootz

Related questions

1 answer 156 views
156 views asked Nov 25, 2017 by avibootz
1 answer 131 views
1 answer 189 views
1 answer 1,297 views
1,297 views asked Sep 4, 2017 by avibootz
...