How i can copy one file from one directory to another directory using php
See Question&Answers more detail:osHow i can copy one file from one directory to another directory using php
See Question&Answers more detail:osYou can use
copy
— Copies fileExample from Manual:
$file = 'example.txt';
$newfile = 'example.txt.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file...
";
}