Skip to content

Instantly share code, notes, and snippets.

@liyanchang
Created August 9, 2012 18:46
Show Gist options
  • Save liyanchang/3307044 to your computer and use it in GitHub Desktop.
Save liyanchang/3307044 to your computer and use it in GitHub Desktop.
<?php
$logo_url = 'https://www.filepicker.io/api/file/3H-lP2NNQ3G9d0jyjP8T';
$ch = curl_init($logo_url);
$fp = fopen("example_homepage.txt", "w");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
print curl_exec($ch);
curl_close($ch);
fclose($fp);
?>
@brettcvz
Copy link

brettcvz commented Aug 9, 2012

curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment