Witam, której funkcji użyć, żeby jak najmniej obciążyć serwer (pomijam tutaj transfer, bo wiadomo, że serwer pobiera plik i wysyła).
Na chwilę obecną wyskrobałem coś takiego :
header('Cache-Control: max-age=0');
header('Cache-Control: private');
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
$tmpName = 'Plik1.rar';
header('Content-Disposition: attachment; filename=' .$tmpName);
header('Content-Transfer-Encoding: binary');
$fp = fopen($this->urlFileAdres, 'rb');
fpassthru($fp);
może lepiej użyć readfile() ?