ładnie daje się pobierać na dysk np. mp3 (niektórzy mają quicktime plugin, więc dlatego się tym zająłem)
ale mam mp3 22MB, a plik wynikowy PHP ma 1KB
nie wiem, gdzie to się ustawia, może .htaccess? proszę o podpowiedź

pozdrawiam, borovsky
jakby ktoś szukał:
<?php
function readfile_chunked($filename,$retbytes=true)
{
$chunksize = 1*(1024*1024); // how many bytes per chunk
$buffer = '';
$cnt =0;
// $handle = fopen($filename, 'rb');
$handle = fopen($filename, 'rb');
if ($handle === false)
{
return false;
}
while (!feof($handle))
{
$buffer = fread($handle, $chunksize);
echo $buffer;
if ($retbytes)
{
$cnt += strlen($buffer);
}
}
$status = fclose($handle);
if ($retbytes && $status)
{
return $cnt; // return num. bytes delivered like readfile() does.
}
return $status;
}
$src=$_GET["url"];
$ind=strrpos($src,".");
$roz=substr($src,$ind+1,strlen($src));
header('Content-type: application/'.$roz);
header('Content-Disposition: attachment; filename='.basename($src));
header("Content-Length: " .(string)(filesize($src)) );
readfile_chunked($src);
?>