Download and Save Images on Your Server Remotely with PHP | PHP - Hypertext Preprocessor

Standards Based Development

Dead simple easy snippet to download a remote image and throw it up 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 on your server

Download and Save Images on Your Server Remotely with php