copy - Copy a file



examples/files/copy.php
<?php

  if (!copy($oldfile, $newfile)) {
     print "Failed to copy $oldfile to $newfile";
  }

?>