how can i save an image from a web page , for example:
http://othersdomain.com/image/colorful.jpg
How can i save the image and save it to my directory “image” inside FTP.
and also get the “colorful” name from the link.
As a conclusion , it will get colorful.jpg and save in my directory with the same name and type then echo out the link to it(on my web server).
after being saved to my server , it will echo out somehting like this:
http://mydomain.com/image/colorful.jpg
You can get a file from another server using
file_get_contents.