複製程式碼 程式碼如下:
function > $file = "./$mudir";
@mkdir($file,0777);
}
function write 🎜> $fp=fopen("showmod.shtml","r");
$str=fread($fp,filesize("showmod.shtml"));
fclose($fp); > $fp=fopen($filemodname,"w");
fwrite($fp,$str);
fclose($fp);
}
,$modfile) //更新各自的子摸板檔案//$modfile是子摸板名字
{
$fp=fopen($modfile,"r");
$str=fread( $fp,filesize($modfile));
$str=str_replace($content,$web,$str);
fclose($fp);
$fp = fopen($fp);
$fp = fopen($fpfile,"w ");
fwrite($fp,$str);
fclose($fp);
}
$m = "00000";
$m = "00000"; $ff = $m."/0001.shtml";
if(!file_exists($ff))
{
writemod($ff);
writemod($ff);
echo"已經存在";
}
$d="{content6}"; //更新的內容
$dd="";///$dd="的內容
@writeweb($d,$dd,$ff);
?>
http://www.bkjia.com/PHPjc/317233.html
www.bkjia.comtrue
http: //www.bkjia.com/PHPjc/317233.htmlTechArticle複製程式碼如下: ? functionmakedir($mudir)//建立目錄{ $file="./$mudir "; @mkdir($file,0777); } functionwritemod($filemodname)//先創子摸板檔案路徑{ $fp=fopen...