Re: Tracking file download progress
| From: | STEEL | Date: | Thu, 24 Dec 2009 11:01:48 +0000 |
| Subject: | Re: Tracking file download progress | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300667@lists.php.net to get a copy of this message | ||
> On Thu, Dec 24, 2009 at 09:55, STEEL <vlad62@mail.kna.ru> wrote:
>> Thanks for response, but seems you haven't understood:
>>>> takes URL of file from client and downloads it to my server.
>> User don't download it at the downloading time to server, server gets
>> it thru PHP script and stores on itself!
>> ONly i want is understand how to show progress bar to user. I have an
>> idea: in my downloading script in cycle add $_REQUEST['completed']
>> with downloaded bytes, then at the client side via JavaScript(JQuery)
>> it will dynamically get data from backend variable. Would it work?
> Oh, I see now. Sorry.
> I had this in my bookmarks: http://www.swfupload.org/
> I don't know if it's any good, but you can check it out.
> --
> Daniel Egeberg
Thanks all, I've found the solution! PHP Backend + JQuery works great!
And without "eating" lot of bandwith, graph updated only once per 2
seconds and data sent by server is only about 500 bytes