楼上说的有一定的道理,不过你注意了没有$filenum=fopen($path,"r"); inWarning: fopen("datafile/config.php","w") - No such file or directory in adminglobal.php on line 199 这两行信息中的打开的方式好象不一样啊,如果你想用这个方法打开已经有的文件,或者新创建一个文件的话应该用"w"方式。 下面的警告都是$filenum=fopen($path,"r");中的$filenum没有得到值这是应该的。 不过从你变量的命名来看,你命名为$filenum好象要取得的是$path下的文件数目一样,所以请再说清楚一点
Warning: fopen("datae/zy.php", "r") - No such file or directory in /z2/fzyh/public_html/bbs/global.php on line 145Warning: Supplied argument is not a valid File-Handle resource in /z2/fzyh/public_html/bbs/global.php on line 146Warning: stat failed for datae/zy.php (errno=2 - No such file or directory) in /z2/fzyh/public_html/bbs/global.php on line 147Warning: Supplied argument is not a valid File-Handle resource in /z2/fzyh/public_html/bbs/global.php on line 147Warning: Supplied argument is not a valid File-Handle resource in /z2/fzyh/public_html/bbs/global.php on line 148这是什么?和你上面说的不一样
inWarning: fopen("datafile/config.php","w") - No such file or directory in adminglobal.php on line 199
这两行信息中的打开的方式好象不一样啊,如果你想用这个方法打开已经有的文件,或者新创建一个文件的话应该用"w"方式。
下面的警告都是$filenum=fopen($path,"r");中的$filenum没有得到值这是应该的。
不过从你变量的命名来看,你命名为$filenum好象要取得的是$path下的文件数目一样,所以请再说清楚一点
你到我的论坛去看看好吗?http://fzyh.51.net/bbs/index.php
我没有登陆没有问题,你登陆就出现上面的问题
要麽沒有datae這個目錄,要麽沒有zy.php這個文件
你加上就行了
將裏面的datae改為data