title: PHP global path setting
body: <p>I have this setting.</p>
  
  <pre><code> root dir| 
         index.php
         config.php
         file.php  |
                   |
                   |scripts|a.js
                   |
                   |account
                           |index.php
                           |         |
                           |member   |index.php
  </code></pre>
  
  <ul>
  <li><p>Now, I've included index.php of member dir into index.php of account dir. Also , the account index.php includes the config.php which contains,</p>
  
  <pre><code>define( 'PATH', (__DIR__) );
  </code></pre></li>
  </ul>
  
  <p>Now , for all includes in account index.php I use,</p>
  
  <pre><code>require_once( PATH . '\file.php' ); 
  </code></pre>
  
  <p>and is working properly. But when I try to add the path for script src such as,</p>
  
  <pre><code>&lt;script type="text/javascript" src="&lt;?php '.PATH.'scripts/livevalidation.js ?&gt;"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I get an error, so how can i include the a.js in scripts folder into index.php of account using the globally defined path.</p>
  
  <p>Thanks.</p>