Showing posts with label php error reporting. Show all posts
Showing posts with label php error reporting. Show all posts

Tuesday, July 8, 2008

How to turn off error reporting in php Using php code - error_reporting()

If you want to turn off any errors and warning from displaying in the web page, The easiest way is to modify the php.ini file.
But what if you want to turn off error reporting in php using your php code? you can accomplish this easily using php built in function error_reporting()

<?php

error_reporting(0); // Turn off all error reporting

?>



More info : http://www.php.net/error_reporting

Freelance Jobs