No skusal som to fpassthru a aj fread, ale stale rovnako. ale zistil som ze, 30 MB subor to stiahne ale 70 MB nie.
Momentalne tam mam nieco taketo:
$fp = fopen("CESTAKSUBORU, 'rb');
header("Cache-Control: ");
header("Pragma: ");
header("Content-Disposition: attachment; filename=NAZOV");
header("Content-length: VELKOST");
header("Content-type: application/octet-stream");
sleep(1);
session_write_close();
ob_flush();
flush();
while(!feof($fp)) {
$buffer = fread($fp, 32 * 1024);
print $buffer;
}
fclose ($fp);
exit;