- header("Content-Disposition: attachment; filename='имяподкоторымнадосохранитьфайл.расширение'");
- header("Accept-Ranges: bytes");
- header("Content-Length: ".filesize('имяфайласкоторымонхранитсянасервере.расширение'));
- header("Content-type: application/octet-stream");
- print file('имяфайласкоторымонхранитсянасервере.расширение')