title: How to disable notice outputs in PHP?
body: <p>I have a (local) webserver with a configuration to show all errors of PHP (since debugging is easier that way).</p>
  
  <p>For some reason, there is a minor issue in the PHP files, resulting in errors like the following:</p>
  
  <pre><code>Notice: Constant ADODB_BAD_RS already defined in /full/path/to/adodb.inc.php on line 23
  </code></pre>
  
  <p>Since these notices are not interesting, at least for the library I'm including, I would like to ignore them somehow.</p>
  
  <p>Currently I'm doing this the following way:</p>
  
  <pre><code>echo "&lt;!-- Ignore some useless warning";
  require_once "path/to/adodb.inc.php";
  echo "End ignoring warning --&gt;";
  </code></pre>
  
  <p>This works fine for my generated HTML, though <em>the warnings still appear in generated HTML code</em>.</p>
  
  <p>Is there a way to remove those lines from the output, without having to sacrifice the possibility to see similar notices for my own code?</p>