Results 1 to 15 of 15
Thread: relative path in including
Dec 8, 2010, 18:52 #1
- Join Date
- Apr 2003
- daejeon, South Korea
- 1 Post(s)
- 0 Thread(s)
relative path in includingCode:
my INLUDED FILE
<?php include "../myPath1/included.php"; ?>
The two pages produces same result because the second page include the 1st page.
<?php include "myPath/including.php" ; ?>
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
"PHP include" doesn't support double relative path ?