Turning error reporting off php

php

Solution

Tried this yet?

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

Problem

I wanted to turn off the error reporting on a website. Googling for it I found that placing the code mentioned below in the website stops the errors from getting displayed on the screen. I placed it into my website but it did not work. Please help me out. Thanks ``` <?php error_reporting(0); // Turn off all error reporting ?> ```

Original source