php 导出数据并提示下载信息

header(“Pragma: public“); header(“Expires: 0“); header(“Content-Type: application/force-download“); header(“Content-Type: application/download“); header(“Content-Disposition: attachment;filename=$fn“); header(“Content-Transfer-Encoding: binary “);//二进制 echo "内容"; exit();

你可能感兴趣的:(PHP)