Home » Interview » Technology

What is the difference between using copy() and move() function in php file uploading?

Correct 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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion