<p>What is the best method of hiding php errors from being displayed on the browser?</p>

<p>Would it be to use the following:</p>

<pre><code>ini_set("display_errors", 1);
</code></pre>

<p>Any best practice tips would be appreciated as well!</p>

<p>I am logging the errors, I just want to make sure that setting the display_errors value to off (or 0) will not prevent errors from being logged.</p>

The best way is to log your errors instead of displaying or ignoring them.
This example will log the errors to syslog instead of displaying them in the browser.
```
```
ini_set("display_errors", 0);
ini_set("log_errors", 1);

//Define where do you want the log to go, syslog or a file of your liking with
ini_set("error_log", "syslog"); // or ini_set("error_log", "/path/to/syslog/file");
```
```