Home arrow Forum

Remository Forum

 


BalthaZar

Karma: 0  
Re:Download resume support - 2006/08/06 21:24 You have to handle the http request header sent by the client.
There will be a line like this:
Range: bytes=339843-2392437
That means that the client requests the bytes between 339843 and 2392437

So after your fopen(), you should send those bytes to the client. I guess you will need to use fseek and then fread.

Your response header should start with
HTTP/1.1 206 Partial Content
and should have these 3 lines:
Accept-Ranges: bytes
Content-Length: 2052595
Content-Range: bytes 339843-2392437/2392438

You can find more info at these pages:
Header Field Definitions: http://freesoft.org/CIE/RFC/2068/197.htm
php examples and explanations:
http://php.net/header
An very nice httpdownload class that supports resume:
http://www.phpclasses.org/browse/package/2221.html
  | | Sorry, you do not currently have permission to write here.

      Topics Author Date
    thread link
Download resume support
BalthaZar 2006/08/06 10:20
    thread link
thread link Re:Download resume support
admin 2006/08/06 14:51
    thread link
thread linkthread link Re:Download resume support
BalthaZar 2006/08/06 21:24
    thread link
thread linkthread linkthread link Re:Download resume support
BalthaZar 2006/08/06 21:33
    thread link
thread linkthread linkthread linkthread link Re:Download resume support
BalthaZar 2006/08/06 21:43
    thread link
thread linkthread linkthread linkthread linkthread link Re:Download resume support
admin 2006/08/07 12:40
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
sexvidx 2007/01/10 20:59
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
admin 2007/01/12 09:17
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
Projecto 2007/02/22 14:48
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
admin 2007/02/23 12:01
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
Projecto 2007/02/26 11:55
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
admin 2007/02/27 22:07
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
Projecto 2007/02/28 11:29
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
Projecto 2007/03/02 15:00
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Download resume support
admin 2008/06/30 23:02

Menu

Budding author?

Could you write about software?  Packt Publishing is looking for authors for its new series of Beginners' Guides.  Take a look at their web site to find out more.

Login Form

Username

Password

Remember me
Password Reminder
No account yet?
Create one

Who is Online

Remository welcomes guests and registered users.

We have 22 guest online