title: Image copy, create and rename with PHP?
body: <p>I need to create a function that, given a target folder will...</p>
  
  <p>1) Check to see if a file named myImage.png exists in the target folder and creates a copy of it called myImage-default.png</p>
  
  <p>2)Checks to see if a file named "myImage-trans.png" exists in the target folder (creates it if not), makes a copy of it and saves it as myImage.png (myImage-trans.png should be a 1x1 pixel transparent png)</p>
  
  <p>How difficult might this be and what PHP methods would you use?</p>
  
  <ul>
  <li>All images will reside in the root of the target folder. No subfolders involved.</li>
  </ul>