Wed Jun 24 2020
Copy File
PHP Scripting955 views
File Name: copy-file.php
<?php
$source = "text.php";
$destination = "test/newText.php";
/* Copy file using copy()) */
if(copy($source, $destination))
echo "File copied successfully.";
else
echo "File could not be copied...Please try again!";
?>
/* Ouput */
File copied successfully!
Reference:
Author:Geekboots