the relevant code for the download script:
$fp = @fopen($file, 'rb');
while(!feof($fp) && ($p = ftell($fp)) <= $end) {
if ($p + $buffer > $end) {
$buffer = $end - $p + 1;
}
echo fread($fp, $buffer);
flush();
if($limits["Max_DL"]) sleep(1);
}
fclose($fp);
while a download is in progress, any other pages for the same site dont load. but they do still load in another browser. I am thinking this has something to do with the fact that the download page is continuously "loading" so stopping other pages from loading?
any suggestions on how i can fix this? for large files i dont want the user to not be able to browse the site while they are in the process of a download