why two level PHP include only work on current directory?
问题 Let me demonstrate my file structure first. /www/ myfile.php anotherC.php a/ b.php c.php The code inside myfile.php is: <?php include_once("a/b.php"); ?> The code inside b.php is: <?php include_once("c.php"); ?> And finally inside c.php : <?php echo "hello i'm C.php"; ?> So, when I call www/myfile.php I get output: hello i'm C.php These works fine. But let me change b.php to <?php include_once("../anotherC.php"); //or include_once("./c.php"); (it won't work too) ?> Now, when I call www/myfile