Home > Backend Development > PHP Tutorial > php下载文件不显示进度条,该如何处理

php下载文件不显示进度条,该如何处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:35:08
Original
966 people have browsed it

php下载文件不显示进度条
我有一个程序 要求把下载的文件夹重命名于是在网上找了段代码 如下:

header("Content-type:application/octet-stream");
header("Accept-Ranges:bytes");
header("Content-Type:application/force-download");
header("Content-Disposition:inline;filename=".$filename);
header("Accept-Length:".filesize($File));
@readfile($File);//读取文件到输出缓存


可是下载文件时只显示打开文件多少多少。。。 不显示下载进度啊

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
About header files
From 1970-01-01 08:00:00
0
0
0
objective-c - header search path
From 1970-01-01 08:00:00
0
0
0
header problem
From 1970-01-01 08:00:00
0
0
0
How to control the length of page-header?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template