<?php $vison=$_GET['vison']; $name=$_GET['name']; $path=dirname(__FILE__).'/'.$vison.'/'.$name; function downfile($fileurl,$filename) { ob_start(); header( "Content-type: application/octet-stream "); header( "Accept-Ranges: bytes "); header( "Content-Disposition: attachment; filename= {$filename}"); $size=readfile($fileurl); header( "Content-length: " .$size); } downfile($path,$name); ?>
- 随机文章
- 热门文章
- 热评文章
- Libview写软件更新升级程序
- 用PHP发送POST请求
- C#图片处理示例(裁剪,缩放,清晰度,水印)
- C# 生成图片缩略图
- C#修改图片分辨率
- ESP8266在Eclipse下设置编译模式(有boot和无boot)
- 物联网 WIFI 一键配置原理(smartconfig) ESP8266/QCA4004
- HTTP请求头详解