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? 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. 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! 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
Archived
This topic is now archived and is closed to further replies.