Is it possible to organize downloading images from a third-party site by link to the image for example http://www.nokiaplanet.com/uploads/posts/2015-11/1448881894_cute-kitty-360x640.jpg

    1 answer 1

    $remote_path = 'http://www.nokiaplanet.com/uploads/posts/2015-11/1448881894_cute-kitty-360x640.jpg'; $local_path = 'image.jpg'; $image = file_get_contents($remote_path); if ($image) { file_put_contents($local_path, $image); }