欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHP生成靜態(tài)頁

 更新時間:2006年11月25日 00:00:00   作者:  

復制代碼 代碼如下:
<?  
 function makedir($mudir) //創(chuàng)建目錄 
 { 
 $file = "./$mudir"; 
 @mkdir($file,0777); 
 } 
 function writemod($filemodname)   //先創(chuàng)子摸板文件路徑 
 { 
  $fp=fopen("showmod.shtml","r"); 
  $str=fread($fp,filesize("showmod.shtml")); 
  fclose($fp); 
  $fp=fopen($filemodname,"w"); 
  fwrite($fp,$str); 
  fclose($fp); 
 } 
 function writeweb($content,$web,$modfile) //更新各自的子摸板文件//$modfile是子摸板名字 
 { 
 $fp=fopen($modfile,"r"); 
 $str=fread($fp,filesize($modfile)); 
 $str=str_replace($content,$web,$str); 
 fclose($fp); 
 $fp = fopen($modfile,"w"); 
 fwrite($fp,$str); 
 fclose($fp); 
 } 
 $m = "00000"; 
 makedir($m); 
 $ff = $m."/0001.shtml"; 
 if(!file_exists($ff)) 
 { 
 writemod($ff); 
 } 
 else 
 { 
  echo"已經(jīng)存在"; 
 } 
 $d="{content6}"; //被更新的內容 
 $dd="";//要更新的內容//要更新的內容 
 @writeweb($d,$dd,$ff); 
?>

相關文章

最新評論