I've got:
/A/index.html
/A/1/index.listing
/A/2/index.listing
/A/3/index.listing
In index.html, I've got the following PHP code:
<?php
$files = glob('.//.listing');
foreach ($files as $file)
{
include $file;
}
?>
As you can see, what this does is include()'s all the index.listing files.
I then create a clone of the above:
/B/index.html
/B/1/index.listing
/B/2/index.listing
/B/3/index.listing
The issue I am having is that when I run "/B/index.html", its ()including the .listing files from the /A/*/index.listing.
I can't understand why this is happening and hoping someone could shed some light on the issue?