Created
June 1, 2013 00:33
-
-
Save wildiney/5688837 to your computer and use it in GitHub Desktop.
Download & save a remote image on your server using PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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