The 3rd file successfully includes the 2nd file,
The 2nd IN the 3rd file fails to open the 1st file and says the quote below although http://dot.kr/x-test/myPath/including.php succeeds to open the 1st file.
Warning: include(…/myPath1/included.php) [function.include]: failed to open stream: No such file or directory x-test\myPath\including.php on line 1
What’s wrong with it?
“PHP include” doesn’t support double relative path ?
Do you mean that I should change the code in the file “including.php” in the directory of “myPath” from include “…/myPath1/included.php”; to "include “included.php”;?
The file “included.php” is in the directory of myPath1, not in myPath.
They(including.php and included.php) are not in the same directory.
I’ve never had to nest includes like you are doing in this exercise but it looks like the reference point for all the relative paths in the nested includes needs to be the folder of the top php file in the nest.
so the file path in the including.php include() needs to be relative to the directory mother.php is in.