PHP: Copier un fichier

Author:
<?php
   $source = "./test.txt";
   $destination = "./copy.txt";
                
   if(copy($source, $destination)) {
      echo "File copied successfully.", " ";
   } else {
      echo "The specified file could not be copied. Please try again.", " ";
   }
               
?>