Copy CodeThe code is as follows:
function MakeDir ($mudir)//Create Directory
{
$file = "./$mudir";
@mkdir ($file, 0777);
}
function Writemod ($filemodname)//first create sub-plate file path
{
$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)//Update the respective sub-pad file//$modfile is the sub-plate name
{
$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 "already exists";
}
$d = "{content6}"; Content that was updated
$DD = "";//What to update//What to update
@writeweb ($d, $DD, $FF);
?>
The above describes the Photoshop CS5 official Chinese cracked version of the download PHP generated static page, including the Photoshop CS5 the official Chinese version of the download of the content, I hope the PHP tutorial interested in a friend helpful.