使用PHP和JavaScript下载状态 [英] Download Status with PHP and JavaScript

查看:109
本文介绍了使用PHP和JavaScript下载状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在寻找一种在一个页面上显示文件下载状态的方法。
我知道这是不需要的,因为用户通常在浏览器中有一个下载状态,但是我想保持用户在他正在下载的页面,只要下载是持久的。为了做到这一点,下载状态应该符合文件实际具有的状态(不是假草稿栏)。也许它也会显示用户正在下载的速度,并根据当前的下载速度来估计需要花费的时间。



可以使用PHP和JavaScript的?或者它是否需要Flash或Java?



服务器上的某个地方不应该是关于谁以什么速度下载哪些内容的信息? b
$ b

谢谢你提前的帮助。

解决方案

但请查看 http://markmail.org/message/kmrpk7w3h56tidxs#query:jquery%20ajax%20download%20progress+page:1+mid:kmrpk7w3h56tidxs+state:results 非常接近的努力。 IE(像往常一样)是不玩球的主要原因。


I'm currently looking into a way of showing the file download status on a page. I know this isnt needed since the user usually has a download status in the browser, but I would like to keep the user on the page he is downloading from, as long as the download is lasting. To do that, the download status should match the status the file actually has (not a fake prograss bar). Maybe it will also display the speed the user is downloading at, and estimate the time it will take, depending on the current download rate.

Can this be done using PHP and Javascript? Or does it realy require Flash or Java?

Should not somewhere on the Server be an information about who is downloading what at what speed and how much?

Thank you for your help in advance.

解决方案

Not really possible cross-browser, but have a look into http://markmail.org/message/kmrpk7w3h56tidxs#query:jquery%20ajax%20download%20progress+page:1+mid:kmrpk7w3h56tidxs+state:results for a pretty close effort. IE (as usual) is the main culprit for not playing ball.

这篇关于使用PHP和JavaScript下载状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆