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
Downloading an image on a remote server and saving it on your own server is useful when building websites, and it’s also very easy to do.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.