WapZap adlı üyeden alıntı: mesajı görüntüle
 <?php 
$hedef="https://www.r10.net/images/misc/vbulletin3_logo_white.gif"; //hedef url 
$mime="image/gif";//header bilgisi icin mime turunu aliyoruz 
$sahte="logo.gif";//dosyayı maskelediğimiz ad.  . 
header('Content-type: '.$mime); 
header('Content-Disposition: attachment; filename="'.$sahte.'"'); 
readfile($url); 
?>
dosyanizin turunu utf8 bomsuz olarak degistirin. ayrica sorun kodlarda degil header.php eklediginizden calismioyr bu indirilen dosya bu yonlendirme yapmaz
dediğiniz gibi yaptım bu hatayı aldım:

Warning: Cannot modify header information - headers already sent by (output started at dosya.php:1) in dosya.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at dosya.php:1) in dosya.php on line 6

Warning: readfile() [function.readfile]: Filename cannot be empty in dosya.php on line 7

ayrıca header.php diye bir şey yok buyrun bakın:
http://ascii-utf8converter.tk/dosya.php