Saving thumbnails images to certain directory
<p>I'm willing to use thumbnails into my website which is mainly like websites directory.
I've been thinking to save url thumbnails into certain directory !</p>

<p>Example :-</p>

<p>I'm going to use free websites thumbnails service that gives me code to show thumbnail image of any URL as follow</p>

<pre><code>&lt;img src='http://thumbnails_provider.com/code=MY_ID&amp;url=ANY_SITE.COM'/&gt;
</code></pre>

<p>This would show the thumbnail of <code>ANY_SITE.COM</code></p>

<p>i want to save the generate thumbnail image into certain directory <code>my_site.com/thumbnails</code></p>

<p>Why i'm doing this ?</p>

<p>in fact my database table is like <code>my_table {id,url,image}</code> where i'm going to give the image thumbnail random name and store its new name into <code>my_table</code> related to its url then i can call it back anytime and i know how to do it but i don't know how to save it into certain directory.</p>

<p>any help ~thanks</p>
