copy

It can be used to copy file

Example

<?php

copy(“test.txt”,”test.txt.new”) or die(“Failed to copy the file”);

?>

Share