文件下载方法
来源:互联网 发布:北邮图书馆软件 编辑:程序博客网 时间:2024/05/19 22:48
public function actionFileDownload(){$file = $_POST['file'];$filename = $_POST['filename'];$filetype=strtolower(array_pop(explode('.',$file)));header('Content-type: application/'.$filetype); header('Content-Disposition: attachment; filename="'.$filename.'.'.$filetype.'"'); readfile("$file"); exit(); }
- cmd下载文件方法
- 文件下载方法
- 文件下载方法
- cmd下载文件方法
- resin文件下载方法
- 文件下载方法
- 文件下载方法
- 文件下载方法
- 下载文件方法
- 文件下载方法
- c#文件下载方法
- 文件下载方法
- .net 下载文件方法
- 文件下载方法集合
- silverlight文件下载方法
- php下载文件方法
- Hotfile文件下载方法
- 文件下载方法
- <li>标签之间有间距的问题
- cookie 和session 的区别详解
- Json解析中遇到的问题(__NSCFNumber和__NSCFString)
- Java 实现大整数加法、乘法、阶乘运算
- killall命令
- 文件下载方法
- (一)职业规划和制定计划
- PHP 实现定时任务的几种方法
- window.attachEvent和window.addEventListener的区别(其实只是支持的浏览器不同)
- 安装GoLang编译环境
- 初学C语言的感悟——书山有路勤为径。
- Android Appliction 使用解析
- UITabBar动态的隐藏和显示
- java 重定向和转发的区别