bobleny Posted July 10, 2006 Share Posted July 10, 2006 Is there a way to stop php from writing an error message to the screen? Quote Link to comment https://forums.phpfreaks.com/topic/14179-is-there-a-way-to-stop-php-from-writing-an-error-message-to-the-screen/ Share on other sites More sharing options...
Daniel0 Posted July 10, 2006 Share Posted July 10, 2006 Sure, just put this in your script: [code]error_reporting(0);[/code]Or if you got access to php.ini then you may edit the display_errors setting and set it to Off. Quote Link to comment https://forums.phpfreaks.com/topic/14179-is-there-a-way-to-stop-php-from-writing-an-error-message-to-the-screen/#findComment-55548 Share on other sites More sharing options...
bobleny Posted July 10, 2006 Author Share Posted July 10, 2006 Great thanks! Quote Link to comment https://forums.phpfreaks.com/topic/14179-is-there-a-way-to-stop-php-from-writing-an-error-message-to-the-screen/#findComment-55554 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.