saving image from a webpage + saving its name too using PHP
<p>how can i save an image from a web page , for example:</p>

<pre><code>http://othersdomain.com/image/colorful.jpg
</code></pre>

<p>How can i save the image and save it to my directory "image" inside FTP.
and also get the "colorful" name from the link. </p>

<p>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).</p>

<p>after being saved to my server , it will echo out somehting like this:</p>

<pre><code>http://mydomain.com/image/colorful.jpg
</code></pre>
