I've got:
In index.html, I've got the following PHP code:
As you can see, what PHP code does is include()'s all the index.listing files.
I then create a clone of the A directory and alter the HTML in the .listing files so can tell the difference between A & B when they render:
The issue I am having is "/B/index.html" is ()including the .listing files from the /A/*/ directory, when it should be including them from the /B/*/ directory.
I can't understand why this is happening and hoping someone could shed some light on the issue?
/A/index.html
/A/1/index.listing
/A/2/index.listing
/A/3/index.listing
/A/1/index.listing
/A/2/index.listing
/A/3/index.listing
<?php
$files = glob('./*/*.listing');
foreach ($files as $file)
{
include $file;
}
?>
$files = glob('./*/*.listing');
foreach ($files as $file)
{
include $file;
}
?>
I then create a clone of the A directory and alter the HTML in the .listing files so can tell the difference between A & B when they render:
/B/index.html
/B/1/index.listing
/B/2/index.listing
/B/3/index.listing
/B/1/index.listing
/B/2/index.listing
/B/3/index.listing
I can't understand why this is happening and hoping someone could shed some light on the issue?
Comment