Hide php errors on production copy

If you are certain your solution is thoroughly tested and ready for production deployment add this line of code to the top your code:
<?php error_reporting(0); ?>

In the event you are using a framework (such as Zend), place this at the top of your index.php parser.

About the Author