../为什么不是上一级目录,超级奇怪的问题。100分求助
一般情况下
/ 表根目录
./ 表当前目录
../ 表上级目录
但是有如下情况时就会报错。有没有人知道为什么?
目录形式
www
|- test.php
|- test
| |- a.php
| |- b.php
| |- test
| | |- c.php
test.php <? require_once('test/a.php'); ?>
a.php <? require_once('test/c.php'); ?>
c.php <? require_once('../b.php'); ?>
出错提示:
Warning: require_once(../b.php) [function.require-once]: failed to open stream: No such file or directory in E:\testweb\test\test\c.php on line 1
Fatal error: require_once() [function.require]: Failed opening required '../b.php' (include_path='.;C:\php5\pear') in E:\testweb\test\test\c.php on line 1