phpmady Posted April 12, 2010 Share Posted April 12, 2010 Hi , I am using php5.3.0 I am having default display_errrors=OFF my friend using diffrent version, there display_errors=ON So what is the better one to configuire ON or OFF thank you Quote Link to comment https://forums.phpfreaks.com/topic/198282-display_errors/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 12, 2010 Share Posted April 12, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/198282-display_errors/#findComment-1040369 Share on other sites More sharing options...
TeddyKiller Posted April 12, 2010 Share Posted April 12, 2010 such as when a hacker feeds your code all kinds of unexpected data that your validation logic does not handle. True but you really make it sound nasty. D: Quote Link to comment https://forums.phpfreaks.com/topic/198282-display_errors/#findComment-1040381 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.