title: Foreach file in root directory and all sub directories
body: <p>I want to <code>include</code> every file from every directory in my project. What I currently have is, that I <code>include</code> every file from a specific directory</p>
  
  <pre><code>foreach (glob("*.php") as $filename)
  {
      include_once $filename;
  }
  </code></pre>
  
  <p>But I also want to do the same for every directory I have and all the files in there. I heard of the <code>__autoload</code> function, but I also need it sometimes in for non-class-functions.</p>