Mam ten kod na stronie:
<?php $file = 'test.doc'; { } $range = $_SERVER['HTTP_RANGE']; $r_start = 0; $c_length = $fsize; if ($range) { $reg = "/bytes=([0-9]+)-([0-9]*)/"; $r_start = (int) $matches[1]; $r_stop = (int) $matches[2]; if ($r_stop < $r_start) $r_stop = $fsize - 1; $c_length = $r_stop - $r_start + 1; $r_start . '-' . $r_stop . '/' . $fsize); } else { } 'attachment; filename="' . $fname . '"'); { } ?>
Lecz zamiast mi go pobierać to on się wyświetla (chyba bo jakies znaczki

Warning: Cannot modify header information - headers already sent by...
Co zrobić, aby mi ten plik pobierało
