时间:2021-07-01 10:21:17 帮助过:8人阅读
$file_name = urlencode($_REQUEST['filename']);
header("Pragma: public"); header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header('Content-Type: application/vnd.ms-excel; charset=utf-8');
header("Content-Transfer-Encoding: binary");
header('Content-Disposition: attachment; filename='.$file_name);
echo strips教程lashes($_REQUEST['content']);
?>
http://www.bkjia.com/PHPjc/632295.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632295.htmlTechArticle解决中文乱码解决方法有很多种,一种是对url编码如urlencode方法,另一种是下面的header头处理方法以binary方法。 ?php教程 $file_name = urlencod...