+----------------------------------------------------------
下载文件
可以指定下载显示的文件名,并自动发送相应的Header信息
如果指定了content参数,则下载该参数的内容
+----------------------------------------------------------
public static download ( string $filename, string $showname = '', string $content = '', integer $expire = 180 ) | ||
$filename | string | 下载文件名 |
$showname | string | 下载显示的文件名 |
$content | string | 下载的内容 |
$expire | integer | 下载内容浏览器缓存时间 +---------------------------------------------------------- +---------------------------------------------------------- |