Skip to content

Instantly share code, notes, and snippets.

@enopanen
Created December 3, 2013 16:32
Show Gist options
  • Save enopanen/7772393 to your computer and use it in GitHub Desktop.
Save enopanen/7772393 to your computer and use it in GitHub Desktop.
Download & save a remote image on your server
$image = file_get_contents('http://www.url.com/image.jpg');
file_put_contents('/images/image.jpg', $image); //Where to save the image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment