How to Upload images

I want to know How to Upload images Using URl ?
This is sample image url “” I want to upload in to my site using upload.PHP,Jquery one is better.

Thanx, I think this function can be use only to copy local file but i can be use remotely.

I believe copy() works