HTTP_RANGE
Posted: Thu Sep 04, 2008 6:11 pm
Hi,
Just a quick question, i know HTTP_RANGE is used to resume downloads, but in my download script i have this code:
What i want is to only perform a mysql query if HTTP_RANGE is empty, which it would be if you start the download in IE for example, but do download managers do the same or do they put a 0 or 1 into HTTP_RANGE?
I just want a reliable way to know if its the start of the file being downloaded or not... so that a download counter can be more accurate, and only count a download once even though a download manager will make a few connections.
Thanks
Just a quick question, i know HTTP_RANGE is used to resume downloads, but in my download script i have this code:
Code: Select all
if(!isset($_SERVER['HTTP_RANGE'])){I just want a reliable way to know if its the start of the file being downloaded or not... so that a download counter can be more accurate, and only count a download once even though a download manager will make a few connections.
Thanks