[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

PHP error reporting

Hello!

In my PHP.ini I have:
error_reporting  =  E_ALL & ~E_NOTICE

But I want any warning, error, hints... Anything PHP can tell me to improve my code... displayed to me straight in the (HTML) output.

Does:
error_reporting  =  E_STRICT & ~E_NOTICE
will do the job?

I use PHP 5.2.1.
0
mychel_normandeau
Asked:
mychel_normandeau
  • 2
  • 2
2 Solutions
 
darron_chapmanCommented:
Just E_ALL....

error_reporting  =  E_ALL
0
 
hernst42Commented:
use
error_reporting  =  E_ALL | E_STRICT

E_STRICT is not included in  E_ALL
0
 
mychel_normandeauAuthor Commented:
error_reporting  =  E_ALL | E_STRICT

Will also display messages in output ?
0
 
mychel_normandeauAuthor Commented:
error_reporting  =  E_ALL | E_STRICT
Will also display messages in output ?

and what about E_RECOVERABLE_ERROR ?
0
 
hernst42Commented:
> and what about E_RECOVERABLE_ERROR ?
See http://www.php.net/error_reporting

>Will also display messages in output ?
depends on the setting of display_errors to be turned on
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now