请教一个 require_once 包含问题
先看实例:
|-- index.php (根目录下文件)
|--Test(子目录)
|--common.php(子目录下文件)
|--a.php
|--b.php
|--Other(子目录)
|--c.php
|--d.php
idex.php 内容如下:
<?php
require_once('Test/common.php');
require_once('Test/b.php');
......
?>
common.php 内容如下
<?php
require_once './Other/c.php';
require_once './Other/d.php';
require_once 'a.php';
....
?>
访问index.php 时 在有的服务品上是正常执行(大多), 在有的服务器上运行则提示:
Warning: main() [function.main]: open_basedir restriction in effect. File(C:\php\pear\a.php) is not within the allowed path(s):......
Fatal error: main() [function.require]: Failed opening required 'a.php' (include_path='.;C:\php\pear'
等..
注: 1.include 调用的 Test目录下a.php 文件是 在 open_basedir 的范围内的, 没有超出.
2.是不是php.ini哪配置的问题导致这样 还是require_once引用出的问题?
望高手指教.