Rate this script:  I Love it  /   I Hate it

cURL Download


Code


function curl_download($remote, $local) {
        $cp = curl_init($remote);
        $fp = fopen($local, "w");
       
        curl_setopt($cp, CURLOPT_FILE, $fp);
        curl_setopt($cp, CURLOPT_HEADER, 0);
       
        curl_exec($cp);
        curl_close($cp);
        fclose($fp);   

}

 

 

 
cURL Download scripts | cURL Download snippet | cURL Download example | cURL Download tutorial | cURL Download code