How i can copy one file from one directory to another directory using php
You can use
copy
Example from Manual:
$file = 'example.txt'; $newfile = 'example.txt.bak'; if (!copy($file, $newfile)) { echo "failed to copy $file... "; }
2.1m questions
2.1m answers
60 comments
57.0k users