floridaflatlander Posted March 29, 2011 Share Posted March 29, 2011 My provider says that my display_errors is set to off ( in an email, also I have a new provider and I can't see how to get to php.ini yet) I always thought that if display_errors is set to off that when a php error would occur that the screen would go blank from that spot and beyound. However when I put in the wrong connect info by mistake I got Warning: require( PATH TO connect.php (I changed this)) [function.require]: failed to open stream: No such file or directory in /this directory (I changed this) on line 10 Should this stuff be showing with display_errors set to off ? Quote Link to comment https://forums.phpfreaks.com/topic/232053-what-should-be-on-monitor-if-display_errors-is-set-to-off-is-it-set-to-off/ Share on other sites More sharing options...
Pikachu2000 Posted March 29, 2011 Share Posted March 29, 2011 No. Quote Link to comment https://forums.phpfreaks.com/topic/232053-what-should-be-on-monitor-if-display_errors-is-set-to-off-is-it-set-to-off/#findComment-1193654 Share on other sites More sharing options...
Pikachu2000 Posted March 29, 2011 Share Posted March 29, 2011 To remove all doubt as to what the settings are, run a phpinfo() script. Quote Link to comment https://forums.phpfreaks.com/topic/232053-what-should-be-on-monitor-if-display_errors-is-set-to-off-is-it-set-to-off/#findComment-1193657 Share on other sites More sharing options...
floridaflatlander Posted March 29, 2011 Author Share Posted March 29, 2011 Thanks that does remove all doubt, display_errors is on Quote Link to comment https://forums.phpfreaks.com/topic/232053-what-should-be-on-monitor-if-display_errors-is-set-to-off-is-it-set-to-off/#findComment-1193660 Share on other sites More sharing options...
Pikachu2000 Posted March 29, 2011 Share Posted March 29, 2011 You can control it on a per-script basis if needed by adding this to top of the script, but it sure would be easier to figure out how to access your local php.ini. Then you could set up error logging as well. ini_set('display_errors', 0); Quote Link to comment https://forums.phpfreaks.com/topic/232053-what-should-be-on-monitor-if-display_errors-is-set-to-off-is-it-set-to-off/#findComment-1193666 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.