Skip to content

Instantly share code, notes, and snippets.

@bnvk
Forked from christi3k/gist:926604
Created April 19, 2011 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnvk/926612 to your computer and use it in GitHub Desktop.
Save bnvk/926612 to your computer and use it in GitHub Desktop.
$url = 'https://github.com/socialigniter/blog/zipball/master';
$options = array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_FOLLOWLOCATION => 1,
);
$ch = curl_init($url);
curl_setopt_array($ch, $options);
$output = curl_exec($ch);
file_put_contents('repo.zip', $output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment