function dosya_indir($link, $resim_yer) {
    $yer=$resim_yer;
        $link_info = pathinfo($link);
        $uzanti = strtolower($link_info['extension']);
        $file = (@$name) ? $name.'.'.$uzanti : $link_info['basename']; 
        $file=str_replace(array(" ","%20"),"_",$file);
        $curl = curl_init($link);
        $fopen = fopen($yer.$file,'w');
        curl_setopt($curl, CURLOPT_HEADER,0);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
        curl_setopt($curl, CURLOPT_REFERER, "http://www.google.com/");
        curl_setopt($curl, CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_0);
        curl_setopt($curl, CURLOPT_FILE, $fopen);
        curl_exec($curl);
        curl_close($curl); 
        fclose($fopen);
        return @$side.$yer.$file;
    }
dosya_indir("http://www.flashgames247.com/misc-games/2815/jewel_quest.swf", "swf/");
Anormal biçimde 1 kb indiriyor