Okay, I'm creating a software that actually needs this, say I have many directories, and they each have a file named main.php, how do I include all these files and be able to add another directory with a main.php file and have it automaticaly included?
That's true, though there is one problem, that's that I need each file to be named and not with numbers, it's for convenience to my customers so they can just upload a file rather than having to rename it to work. Thanks though, that is something I never considered.