I have autoload.php . This is running for auto loading my classes. I want to include autoload.php as auto my all php files in main folder.
Like:
include_to("index.php, example.php, ............... , other.php");
Meantime I know php’s running style.
You are doing it wrong.
Instead you should be using
spl_autoload_register()to create an autoloader, which load file. if it cannot find the class you use.