How i can use getallheaders?
Posted by: MNU
Posted on: 2007-07-02 01:03:00
Hi, i have function:
$header = getallheaders();
if (isset($header['Range'])) {
header('HTTP/1.0 206 Partial Content');
$range = $header['Range'];
$r = explode('=', $range);
list($from) = explode('-', $r[1]);
$length = $size - $from;
$s_start = $size - $length;
$s_end = $size - 1;
fseek($fp, $s_start);
header ('Content-Range: bytes '.$s_start.'-'.$s_end.'/'.$size);
header ('Content-Length: '.$length);
} else {
header('Content-Length: '. $size);
}
but this function is only supported when PHP is installed as an Apache module. How i can use this function on your web-server?
ps i don't know how use apache_request_headers =(