böyle yaptım:
<?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.
//UYARI
//Hedef dosya türü ile sahte dosya türü aynı olmalı.
//Yönlendirmeleri takip eder. save.php?id=1223 dosyasının hedef türü 3gp ise sahte tür de 3gp olmalı.
$hız=10; //10 kb/s 10 mb/s yapmak için 1024 ile çarpın.
header('Content-type: '.$mime);
header('Content-Disposition: attachment; filename="'.$sahte.'"');
fread($url,round($hız*1024));
?>bu seferde bu hataları aldım:
Warning: Cannot modify header information - headers already sent by (output started at dosya.php:1) in dosya.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at dosya.php:1) in dosya.php on line 10
Warning: fread(): supplied argument is not a valid stream resource in dosya.php on line 11