21,887
社区成员
发帖
与我相关
我的任务
分享
if(file_exists($path))
{
clearstatcache();
if(!$handle = fopen($path,"w+"))
{
die("Can not open file.");
}
if($content=="")
{
die("Content is empty.");
}
if (fwrite($handle, $content) === FALSE)
{
die ("Can not write file $path");
}
fclose($handle);
}
if($content=="")
{
die("Content is empty.");
}
改为
if(strlen($content."-")==1)
{
die("Content is empty.");
}