Dont show errors in PHP

If you have ever been annoyed by errors in PHP and your web app or script still works add the following at the top of your PHP page to make errors not show.

error_reporting(0);
ini_set('display_errors', 0);

Obviously use this once you’re sure that your script or page is functioning well and that the errors you’re blocking are just ticky tack ones. Its not a good idea to ignore errors or warnings.