Re: Checking requested range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marek Kilimajer wrote:
Try http://pear.php.net/package/HTTP_Download

Cheers for that, I think I just found a reasonable method to do a short term fix, though I might totally redesign my download application to support resumable download agents. I looked on the HTTP 1.1 protocol and found the request headers used when requesting parts of a file is "Range:".

For now I put this at the top of my script :-

$headers = apache_request_headers();
foreach ($headers as $header => $value) {
  if (stristr($header, "range") != FALSE) { die; }
}



Using the apache_request_headers to check for the range request and die if it recieves it, does it look reasonable to you?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux