title: PHP include outside class only Once
body: <p>I'm a new guy in PHP OOP concepts. One of the first things that caught my eye that I can't include a php script to multiple classes just by writing it once at the begining of the script. I mean</p>
  
  <pre><code>&lt;?php
  include 'var.php';
  class userSession{
    /* all the code */
    public function getVariables(){
     /* use of variables which are inside var.php */
    }
    public function getOtherVariables(){
     /* use of variables which are inside var.php */
    }
  }
  ?&gt;
  </code></pre>
  
  <p>this doesn't work.</p>
  
  <p>I have to do this - </p>
  
  <pre><code> &lt;?php
      class userSession{
        /* all the code */
        public function getVariables(){
         include 'var.php';
         /* use of variables which are inside var.php */
        }
        public function getOtherVariables(){
         include 'var.php';
         /* use of variables which are inside var.php */
        }
      }
      ?&gt;
  </code></pre>
  
  <p>Anything I'm Missing??</p>