Web Hosting Talk







View Full Version : Looking for someone to do simple script modification


echangnet
04-05-2007, 04:25 AM
Hello,

I am looking for someone to do a simple modification for my download script. Currently, I am using Lighttpd to serve downloads, and use the lines:

header('Accept-Ranges: bytes');
header('Content-Length: $size');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $file_name . '"');
header('X-LIGHTTPD-send-file: ' . $file_path);

This script downloads files fine, but I am unable to enable download resuming. I was wondering if someone could find a way to implement range headers with the Lighttpd send-file function. I am willing to pay a decent amount in order to get this done properly.

Thanks!

linux1213
04-05-2007, 07:23 AM
I dont quite understand what you want doing, can you explain more?

tanfwc
04-05-2007, 08:31 AM
I don't think you can resume download during http protocol

echangnet
04-05-2007, 09:15 AM
I am trying to enable file download resuming on my site, using the existing download method I am using right now. The reason being, I know that buffering the file takes alot of resources, and my existing download method is more conservative (I think).

echangnet
04-05-2007, 10:59 AM
Yes, what I am looking for is http protocol download resuming - is this possible?

mistwang
04-05-2007, 02:43 PM
HTTP/1.1 support download resuming. If the file was served by the web server directly, resuming should work properly. I think it is just that "X-LIGHTTPD-send-file" does not support resuming, fix is not possible in your own php script.

echangnet
04-06-2007, 09:09 AM
I see.. thanks for your response. Is there a script that allows you to figure out when a file has completely finished downloading? I wish to perform a database update ONLY once a file has been completely finished downloading.

echangnet
04-07-2007, 01:52 AM
I was wondering if a script that includes (doesn't have to be like my current script) is possible:

- implementation of mod_secdownload, temporary download link (or downloadsystem like SendSpace.com)
- ability to track how much (file size) a user has downloaded
- ability to execute databse query only once a file has been COMPLETELY finished downloading
- limit user to 1 parallel download (one download at a time)