Thursday, February 10, 2011

How do you disable warnings in PHP?

display_errors = Off
...in your php.ini file. i highly recommend that you don't do this on your development environment as this will nearly impossible to debug your code.

You can also use:
error_reporting(0);  at the top of your script.

No comments:

Post a Comment