title: PHP, How to set include path
body: <p>I've been writing:</p>
  
  <pre><code>include('a.php')
  include('b.php')
  </code></pre>
  
  <p>etc. in my script to include to use functions <code>a()</code> and <code>b()</code>. It gets pretty tedious.  Is there a way to set a path of a directory and have multiple files there be accessible by a script?</p>
  
  <ol>
  <li><p>I tried this in my script:</p>
  
  <pre><code>set_include_path('.;C:\xampp\htdocs\myfunctionfolder');
  </code></pre></li>
  <li><p>And I set an environmental variable PATH to have this older in there.</p></li>
  <li><p>I also in modified php.ini to include</p>
  
  <pre><code>include_path = ".;\xampp\php\PEAR;\xampp\htdocs\myfunctionfolder"
  </code></pre></li>
  </ol>
  
  <p>If I have many files in there, how do I access these files without having to include each individually?  Setting the environmental variable definitely works in the command prompt.</p>
  
  <p>Do I need to do something else for .php files to be accessible collectively under a directory?</p>