While debugging my php script, I wanted to figure out how to get php to display all error messages, including notices. I found this thread which recommended these lines of code:
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
This worked really well. All of my pages were now displaying tons of helpful error messages. I went through everything and fixed it. However, when I deleted those lines of code, all of the notices that weren't there before I turned full reporting on are still there! I need to get them to go away now. How do I change the error reporting back to what it was before? Is there a way to do it without keeping some other code in the script? Preferably I want it to be like it was before--notices weren't reported and there was no code needed to specifically suppress them.