if (!file_exists($counterfile))
//if (!file_exists($counterfile))也可以写成( if file_exists($counterfile) !="true")吧??因为file_exists返回值传回 true为档案存在//
{
fopen($counterfile,"w"); //如果此文件不存在,新建一个文件
}
/*可能是因为你在这里没有关闭$couterfile,所以counter.txt处于锁定状态*/
//if (!file_exists($counterfile))也可以写成( if file_exists($counterfile) !="true")吧??因为file_exists返回值传回 true为档案存在//
{
fopen($counterfile,"w"); //如果此文件不存在,新建一个文件
}
/*可能是因为你在这里没有关闭$couterfile,所以counter.txt处于锁定状态*/
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货