This is my folder structure.
Problem Description
I have included inner.php file of inc folder at index.php. Then I have included config.php file of inc folder at inner.php file.
When i run index.php url in browser then output show like below image.

That output only shows "inner". That means data of config file is not displayed.
Solution can be got by the use of magic constant like __DIR__, __FILE__.
But i need to understand why this problem is created when file name is config.php.
Because when i change file name from config.php to config2.php then browser shows content of config2.php file.
See below code and output image.
Code file image
Output display image
Output shows "configinner" means data print of config file.
According above scenario you can see when i have included config2.php file then it has been included properly.
So that means config.php name file is always get from main route and it not take from inner folder at especially in PHP version 5.5.28.
Am i right or not?


