title: How to include a file that defines constants in a class (and it's scope)
body: <p>Say we have the following:</p>
  
  <p><strong>some.class.php</strong></p>
  
  <pre><code>class
  {
      public __construct()
      {
          fun_stuff();
      }
  
  }
  </code></pre>
  
  <p><strong>configuration.inc</strong></p>
  
  <pre><code>const SOMECONST = 1;
  const SOMEOTHERCONST = 2;
  </code></pre>
  
  <p>I am looking to do something like this:</p>
  
  <p><strong>some.class.php</strong></p>
  
  <pre><code>class
  {
      public __construct()
      {
          include_once(configuration.inc);
          fun_stuff();
      }
  
  }
  </code></pre>
  
  <p>Now this works, but the constant is not defined within the scope of the class (<code>echo some::SOMECONST;</code>) but rather in the global scope (<code>echo SOMECONST;</code>)</p>
  
  <p>I <em>really really</em> want to have the constants in another file as it makes a lot of sense in my case. Is there a way to declare the constants in the scope of the class? I know it's impossible to use <code>includes</code> or <code>requires</code> inside the class definition so i'm at a loss.</p>