<?php
$filename = ‘路径+实际文件名‘;
//文件的类型
header(‘Content-type: application/octstream‘);
//下载显示的名字
header(‘Content-Disposition: attachment; filename="保存时的文件名"‘);
readfile("$filename");
exit();
?>
原文:http://www.cnblogs.com/573583868wuy/p/4365897.html