require_once($path."index.htm");

解决方案 »

  1.   

    用以下代码后
    <?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
      

  2.   

    直接用inlude("../index.htm");不行吗?
    我是这样用的没问题,你文件名没错吧?
      

  3.   

    明显是路途错了,与语法无关,虽然你把include写错了
      

  4.   

    晕,include写成inlude了,低级错误观点
      

  5.   

    顺便问一下,include可以这样调用吗?