move_uploaded_file file not work when it will call two time
<p>i have a function to upload file in php Like:</p>

<pre><code>function upload_file($folder,$name)
{
$dest = "../product/". $folder."/". $name;
$src       = $_FILES['image']['tmp_name'];
if (move_uploaded_file($src, $dest)) {
    } else {
        echo "&lt;script&gt; alert('" . $src . "');
            window.history.go(-1); &lt;/script&gt;\n";
        exit();
    }
}
</code></pre>

<p>whene i call function only one time like <code>upload_file('small','abc.jpg')</code> it works fine but 
i have call two time like:</p>

<pre><code>upload_file('small','abc.jpg')
upload_file('big','abc.jpg')
</code></pre>

<p>it not work on second folder 'big'</p>

<p>any solution for that ?</p>
