I want to save a remote img-file to my server, but I don\'t know how to do.
The image url is http://img.youtube.com/vi/Rz8KW4Tveps/1.jpg and 1.jpg
http://img.youtube.com/vi/Rz8KW4Tveps/1.jpg
1.jpg
If the URL stream wrappers are allowed, you can do it in 1 line rather than having to load it into a var:
copy('http://img.youtube.com/vi/Rz8KW4Tveps/1.jpg', 'imgfolder/imgID.jpg');
This is much less likely to cause a problem with PHP running out of memory.