Created
October 24, 2013 06:43
-
-
Save h-roman/7132383 to your computer and use it in GitHub Desktop.
Загрузка и сохранение изображения на ваш сервер
This file contains 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'); | |
2 | |
file_put_contents('/images/image.jpg', $image); //сохраняем изображение на вашем сервере |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment