title: How to stop PHP from logging PHP Notice errors
body: <p>I'm trying to not log notice errors, which are being written to an error log file on my server.  I've tried (at the top of my <code>index.php</code>):</p>
  
  <pre><code>ini_set('display_errors', 0);  
  error_reporting(E_ALL ^ E_NOTICE);
  </code></pre>
  
  <p>But I'm still getting PHP notice errors in said error log file.</p>
  
  <p>I'm on a shared hosting environment, so I can't edit my <code>php.ini</code> file.</p>
  
  <p><code>phpinfo()</code> tells me:</p>
  
  <pre><code>- Version 5.2.12
  - error_reporting 6143
  - error_log error_log
  - safe_mode Off
  </code></pre>