We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
<?php $rebateurl = "http://www.website.com/archive/rebateImages.zip"; // save that image to our server! $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $rebateurl); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // Getting binary data curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); $image = curl_exec($ch); curl_close($ch); $new_filename = "rebateImages.zip"; $f = fopen('$new_filename, 'w'); //ERROR HERE fwrite($f, $image); fclose($f); ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.