Hi,
I just want to make sure I'm getting it right:
When I used nested include/include_once, I noticed that, say:
/a.php -> include("path/b.php");
/path/b.php -> include("c.php" );
/path/c.php
This works fine. This, however,
/a.php -> include("path/b.php");
/path/b.php -> include("path/c.php");
/path/c.php
does not. So, include takes a path relative to the included file, not
the top parent script, right? I mean, it should be so from what is
happening, but I remember I had some trouble with that some time ago,
maybe there are some version differences?
Thanks
I just want to make sure I'm getting it right:
When I used nested include/include_once, I noticed that, say:
/a.php -> include("path/b.php");
/path/b.php -> include("c.php" );
/path/c.php
This works fine. This, however,
/a.php -> include("path/b.php");
/path/b.php -> include("path/c.php");
/path/c.php
does not. So, include takes a path relative to the included file, not
the top parent script, right? I mean, it should be so from what is
happening, but I remember I had some trouble with that some time ago,
maybe there are some version differences?
Thanks
Comment