Q:
What is the difference between using copy() and move() function in php file uploading?
Answer
Copy() makes a copy of the file. It returns TRUE on success. It can copy from any source to destination. Move simply Moves the file to destination if the file is valid. While move can move the uploaded file from temp server location to any destination on the server. If filename is a valid upload file, but cannot be moved for some reason, no action will occur.
View answer
Workspace
Report Error
Discuss