Skip to content

Instantly share code, notes, and snippets.

@nitrix
Created September 29, 2012 22:01
Show Gist options
  • Save nitrix/3805285 to your computer and use it in GitHub Desktop.
Save nitrix/3805285 to your computer and use it in GitHub Desktop.
<?php
$image = file_get_contents('http://example.com/image.jpg');
$fp = fopen('image.jpg', 'w');
fputs($fp, $image);
fclose($fp);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment