title: How to copy a file without overwriting the destination file?
body: <p>The script I made is.</p>
  
  <pre><code>&lt;?php
  
  $source_file = 'http://www.domain.tld/directory/img.png'; 
  $dest_file = '/home/user/public_html/directory/directory/img.png'; 
  
  copy($source_file, $dest_file);
  
  ?&gt;
  </code></pre>
  
  <p>I need that image to not be delete and reuploaded every time the script is running. I would either want it to be img1.png, img2.png, img3.png, etc. Or img(Date,Time).png, img(Date,Time).png, etc. Is this possible and if so, how do I do this?</p>