copying same file to other folder multiple times : <p>i using this script to copying files to other folder when i clicked submit button</p>

<pre><code>&lt;?php
if (isset($_POST['upload']) &amp;&amp; isset($_POST['datae'])) {
copy('../print/'.$_POST['datae'], '../Upload/'.$_POST['datae']);
echo "&lt;meta http-equiv='refresh' content='1'&gt;";
}
?&gt;
</code></pre>

<p>and now im wondering what if i choose same filename and submitted twice or more.  normally the filename i've already choose will copy and overwrite the same file  that already stored in there.
<br>
<br>
but what i want is whenever i submitted twice or more  the file that already in destination folder, it will not replace or overwrite but it will duplicating same file and just different in file name like</p>

<pre><code>//example in my folder
img_7878.JPG
img_7878_copy1.JPG
img_7878_copy2.JPG
</code></pre>

<p>maybe i could get help from here.</p>
