Hey,
I have a piece of code:
<?php
$path = "/home/surfall/secret";
$mainpath = "$path$file";
header("Cache-Control: ");# leave blank to avoid IE errors
header("Pragma: ");# leave blank to avoid IE errors
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"".$file."\"");
header("Content-length:".(string)(filesize($mainpath)));
sleep(1);
readfile("$mainpath");
?>
However I can't seem to get download manager to work with it? So that I can download the file in pieces, thus the download will be faster. (I use Flashget as the download manager)
Any suggestions? :queasy: