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... "; }
1.4m articles
1.4m replys
5 comments
57.0k users