本文共 541 字,大约阅读时间需要 1 分钟。
header('Content-Description: File Transfer'); header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); header("Content-Disposition: attachment; filename=\"".basename($fileLocation)."\""); header("Content-Transfer-Encoding: binary"); header("Expires: 0"); header("Pragma: public"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Length: ' . filesize($fileLocation)); //Remove ob_clean(); flush(); readfile($fileLocation);
转载地址:http://yqukx.baihongyu.com/