Jump to content

display_errors?


phpmady

Recommended Posts

Code should not normally produce any errors when it executes, so that real errors can be found and fixed (such as when a hacker feeds your code all kinds of unexpected data that your validation logic does not handle.)

 

On a development system, display_errors should be ON and error_reporting should be set to at least E_ALL so that all the php detected errors are reported and displayed.

 

On a live server, display_errors should be OFF and log_errors should be ON, so that php errors are not displayed but they are logged. error_reporting should be set the same as on a development system.

Link to comment
https://forums.phpfreaks.com/topic/198282-display_errors/#findComment-1040369
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.