julien Posted March 31, 2008 Share Posted March 31, 2008 Does anyone know how to turn off warning messages? My code is all correct, but when i view the output/results, it outputs a warning message as well as the information i want to display. Link to comment https://forums.phpfreaks.com/topic/98728-warning-messages-please-help-fast/ Share on other sites More sharing options...
sstangle73 Posted March 31, 2008 Share Posted March 31, 2008 http://us.php.net/error_reporting Link to comment https://forums.phpfreaks.com/topic/98728-warning-messages-please-help-fast/#findComment-505221 Share on other sites More sharing options...
PFMaBiSmAd Posted March 31, 2008 Share Posted March 31, 2008 Turning off warning/notice messages on a live server is just a safeguard against exposing program information due to un-caught and un-expected conditions. If your code is normally generating warnings/notices, it is not yet ready for a live server. Even if you disable the warning/notice messages (the messages are just the last step in a string of actions that occur every time php encounters a problem), your code is running slow because for every warning/notice condition that php encounters it must execute at least 20 times the error response code to deal with the problem than what it would have if your code did not contain any problems. Link to comment https://forums.phpfreaks.com/topic/98728-warning-messages-please-help-fast/#findComment-505245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.