Hi, I'm currently writing website using php. My problem is, when I do:
include("../../library/file.php"); // this is from e.g
/level1/level2/something.php
it works. However, when I use:
include("../../../library/file.php"); // and this one from
/level1/level2/level3/something.php
it doesn't work. So, does the include statement in php only cover 2
upwards directories? Is there anyway around this?
Thanks.
Nic
include("../../library/file.php"); // this is from e.g
/level1/level2/something.php
it works. However, when I use:
include("../../../library/file.php"); // and this one from
/level1/level2/level3/something.php
it doesn't work. So, does the include statement in php only cover 2
upwards directories? Is there anyway around this?
Thanks.
Nic
Comment