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