【文件属性】:
文件名称:php文件下载
文件大小:1KB
文件格式:PHP
更新时间:2018-06-23 14:20:41
php
php文件下载,
//告诉浏览器返回的文件
header("Content_type:application/octet-stream");
//以字节大小返回
header("Accept-Ranges:bytes");
//返回文件大小
header("Accept-Length:$file_size");
//文件的名称
header("Content- Disposition:attachment;filename=".$file_name);