title: Use of undefined constant. PHP localhost
body: <p>I recently changed pcs and transferred a site I was working on from one pc to the other (including database).</p>
  
  <p>When loading my site in the new pc, I encounter this error:</p>
  
  <p>Notice: Use of undefined constant
  Notice: Undefined index:</p>
  
  <p>I did some research and found it can be solved by adding this to my code:</p>
  
  <pre><code>&lt;?php error_reporting (E_ALL ^ E_NOTICE); ?&gt;
  </code></pre>
  
  <p>Is this something good to do? Or should I change my code more?</p>