Bajar archivos con CURL PHP

$url = "http://soyprogramador.liz.mx/wp-content/uploads/2011/11/phplogo128.png";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$output = curl_exec($ch);
//Guardamos la imagen en un archivo
$fh = fopen('logo_php.png', 'w');
fwrite($fh, $output);
fclose($fh);
?>

Te puede ayudar:   http://soyprogramador.liz.mx/manipulacion-de-archivos-php/

Leave a Reply

Your email address will not be published. Required fields are marked *