$new _id_list;//Data Information
$html = "";
foreach ($new _id_list as $id) {
$this->is_already_export ($id);
$list = $erotic _novels->where ("id= $id")->find ();
$data [' export_status '] = ' 1 ';
$erotic _novels->where ("id= $id")->save ($data);
$html. = "<! DOCTYPE html> ";
$html. = "$html. = "$html. = "<meta charset= ' UTF-8 ' >";
$html. = "<title> sheng peach </title>";
$html. = "$html. = "<body>";
$html. = "<div> classification </div>";
$html. = "<div> $list [category]</div>";
$html. = "<div> title </div>";
$html. = "<div> $list [title]</div>";
$html. = "<div> content </div>";
$html. = "<div> $list [content]</div>";
$html. = "</body>";
$html. = "$filename = '/app/xxx/story_list/'. $id. HTML ';
Ob_start ();
File_put_contents ($filename, $html, file_append);
Ob_end_flush ();
}
$notice = ' Operation succeeded! ‘;
Exit (Json_encode ($notice));
PHP generates static HTML pages