文件没找到。路径问题或者权限问题或者没有该文件。
index.php3的117行是什么啊?

解决方案 »

  1.   

    他是说:'/custom/mod/100/index.php3' 不能打开
      

  2.   

    你把website/custom/com/test1/index.php3改成本地路径
    require("http://xxx.com/xx.php");这样写……不行吧
    改回
    require("/home/xx.php");
    的写法。
      

  3.   

    $openfile=website/custom/com/test1/index.php3  //--(此文件确实存在)
    require_once($openfile);
    --------------------------------------
    你要检查一下这个文件是不是被/data/ftp/website/custom/com/test1/index.php3这个文件包含
    而这两个文件不在一个/同级目录里
    然后注意$openfile这个文件是在当前目录下的website/custom/com/test1/
    看你的意思应该这样
    $openfile='/data/ftp/website/custom/com/test1/index.php3'
    路径问题
      

  4.   


    文件确实存在。
    从根文件夹到index.php3文件各级文件权限都是777,可读可写。index.php3的117行就是:require_once($openfile); 
      

  5.   

    不管你文件存不存在。你要写本地路径。(说明:其中website是我的域名)$openfile=website/.......一看就知道你写的不是本地路径了。通过这个路径能得到php么?访问这个地址难道能下载你的php文件?
      

  6.   


    也就不知道 $openfile='website/custom/com/test1/index.php3'前面怎么多出了:data/ftp/变成了:$openfile='/data/ftp/website/custom/com/test1/index.php3'
      

  7.   

    可以改成相对路径看看。或者打印出$openfile看看到底是哪个路径了。
      

  8.   

    你看不懂出错信息吗?出错信息:
    Warning: main(/custom/mod/100/index.php3): failed to open stream: No such file or directory in /data/ftp/website/custom/com/test1/index.php3 on line 117是说:
    在文件/data/ftp/website/custom/com/test1/index.php3 的第117行处
    就是require_once($openfile); 处
    发现文件/custom/mod/100/index.php3不存在
      

  9.   

    通俗一点说:出错的是 /data/ftp/website/custom/com/test1/index.php3 这个文件,这个文件里面用了/custom/mod/100/index.php3,是这个文件不存在。
      

  10.   

    那你暂时可以用绝对路径require_once(http://localhost/website/custom/com/test1/index.php3  ); 
    或require_once(http://localhost/custom/com/test1/index.php3  ); 必须用变量吗?直接requeir就可以了吧