Skip to content

Instantly share code, notes, and snippets.

@joseporiol
Created January 20, 2014 14:23
Show Gist options
  • Select an option

  • Save joseporiol/8520702 to your computer and use it in GitHub Desktop.

Select an option

Save joseporiol/8520702 to your computer and use it in GitHub Desktop.
Just Download & save a remote image on your server using PHP
$image = file_get_contents('http://www.url.com/image.jpg');
file_put_contents('/images/image.jpg', $image); //save the image on your server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment