Public feed #1196378

copy() function

public php v1 · immutable
Raw Edit
·published 2008-09-07 12:50 UTC
rendered paste body
<?php   $source = "./test.txt";   $destination = "./copy.txt";                   if(copy($source, $destination)) {      echo "File copied successfully.", "\n";   } else {      echo "The specified file could not be copied. Please try again.", "\n";   }               ?>