/**
* @desc 生成下载html文件
* @param string 文件名称
* @param string $content 写入内容
*/
function download_html($filename,$content){
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: application/force-download");
header("Content-type: text/html");
header("Content-Disposition: attachment; filename=".$filename.'.html');
header("Content-Description: PHP5 Generated Data");
echo $content;
}
如果本文对您有所帮助,请支持下本站哦!!!^_^