用以下代码后 <?php $path="../"; require_once($path."index.htm"); ?> 产生错误提示: Warning: open_basedir restriction in effect. File is in wrong directory in /home/ftp/redboy/test/oicq3.php on line 3Fatal error: Failed opening required '../index.htm' (include_path='.:/usr/local/lib/php') in /home/ftp/redboy/test/oicq3.php on line 3
<?php
$path="../";
require_once($path."index.htm");
?>
产生错误提示:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/ftp/redboy/test/oicq3.php on line 3Fatal error: Failed opening required '../index.htm' (include_path='.:/usr/local/lib/php') in /home/ftp/redboy/test/oicq3.php on line 3
我是这样用的没问题,你文件名没错吧?