Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.