rdkd1970 Posted June 23, 2011 Share Posted June 23, 2011 I am trying to find the code if I get an error message but the page can still work with the error message what code would I need to block that error message from showing. I have already used the page so I know it works okay but the message is not a good look and I know it will cause panic. It is the parse_var that is showing up. but it is only to show all the items that will upload if($_POST['parse_var'] == "pic"){ Link to comment https://forums.phpfreaks.com/topic/240258-an-error-message-that-will-have-page-still-run/ Share on other sites More sharing options...
Pikachu2000 Posted June 23, 2011 Share Posted June 23, 2011 You shouldn't be displaying php errors on a live server. You should be logging them, and if necessary displaying a generic "there was a problem" message. Link to comment https://forums.phpfreaks.com/topic/240258-an-error-message-that-will-have-page-still-run/#findComment-1234100 Share on other sites More sharing options...
fugix Posted June 23, 2011 Share Posted June 23, 2011 What do you mean "it's showing up" you csn use ini_set() to set display_errors to off. But I'm not sure if that's what you should do until I know more about your question Link to comment https://forums.phpfreaks.com/topic/240258-an-error-message-that-will-have-page-still-run/#findComment-1234101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.