title: constants class in php
body: <p>I once heard it's good to have one class with all your application constants so that you have only one location with all your constants.</p>
  
  <p>I Tried to do it this way:</p>
  
  <pre><code>class constants{
      define("EH_MAILER",1);
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code> class constants{
           const EH_MAILER =1;
   }
  </code></pre>
  
  <p>But both ways it doesn't work.
  Any suggestions?</p>