你看不懂出错信息吗?出错信息: 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不存在
require("http://xxx.com/xx.php");这样写……不行吧
改回
require("/home/xx.php");
的写法。
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'
路径问题
文件确实存在。
从根文件夹到index.php3文件各级文件权限都是777,可读可写。index.php3的117行就是:require_once($openfile);
也就不知道 $openfile='website/custom/com/test1/index.php3'前面怎么多出了:data/ftp/变成了:$openfile='/data/ftp/website/custom/com/test1/index.php3'
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不存在
或require_once(http://localhost/custom/com/test1/index.php3 ); 必须用变量吗?直接requeir就可以了吧