header("Content-Type: application/force-download;");
header("Content-Length: ".($size-$cur_pos+1));
header("Content-Disposition: attachment; filename=\"".$file."\";");
header("Content-Transfer-Encoding: binary");
header("Accept-Ranges: bytes");
header("Content-Range: bytes ".$cur_pos."-".$size."/".$filesize);
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");
header("Pragma: public");
|