corillo181 Posted April 30, 2008 Share Posted April 30, 2008 i tried using error_reporting(0); to sto my errors fromshowing but they still show. what shoudl i do to stop errors from showing to the public? Quote Link to comment https://forums.phpfreaks.com/topic/103636-solved-error-reporting/ Share on other sites More sharing options...
corbin Posted April 30, 2008 Share Posted April 30, 2008 Are they compile errors? If they're compile errors or errors before the error_reporting call then they will still be shown if your php.ini is set to show them... Can you give an example error? Quote Link to comment https://forums.phpfreaks.com/topic/103636-solved-error-reporting/#findComment-530687 Share on other sites More sharing options...
corillo181 Posted April 30, 2008 Author Share Posted April 30, 2008 really? because i used to work with a guy who had a code that no matter the error, the error was not shown to the public and it was sent to a txt file. i haven't seen him again so i am not able to asking for the code. Quote Link to comment https://forums.phpfreaks.com/topic/103636-solved-error-reporting/#findComment-530715 Share on other sites More sharing options...
roopurt18 Posted April 30, 2008 Share Posted April 30, 2008 The best place to disable / enable error reporting is in php.ini. If you have a shared host they might provide a means for you to provide your own php.ini; if you're on a dedicated or local environment then it shouldn't be a problem. I was adjusting my error reporting levels today in php.ini and they didn't take affect until I restarted the web server, so try that as well if it looks like your changes are being ignored. Quote Link to comment https://forums.phpfreaks.com/topic/103636-solved-error-reporting/#findComment-530738 Share on other sites More sharing options...
hitman6003 Posted April 30, 2008 Share Posted April 30, 2008 ini_set('display_errors', 0); Quote Link to comment https://forums.phpfreaks.com/topic/103636-solved-error-reporting/#findComment-530739 Share on other sites More sharing options...
corillo181 Posted May 1, 2008 Author Share Posted May 1, 2008 thank you!! Quote Link to comment https://forums.phpfreaks.com/topic/103636-solved-error-reporting/#findComment-530762 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.