-
-
Save srinathweb/9af86ec246204b2bb78b to your computer and use it in GitHub Desktop.
Just 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
| $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