What is the difference between using copy() and move()
function in PHP file uploading?
Answer Posted / hitha
Copy :Makes a copy of a file. Returns TRUE if the copy
succeeded, otherwise FALSE.syntax is
copy(source,destination)
Move : If the file is valid, it was uploaded via PHP's
HTTP POST upload mechanism, it will be moved to the
filename given by destination.Otherwise no action will
occur, and move_uploaded_file() will return FALSE.
syntax is same as copy().
| Is This Answer Correct ? | 30 Yes | 12 No |
Post New Answer View All Answers
What are interfaces in php?
What is cakephp framework?
How does php work?
Explain the difference b/w static and dynamic websites?
What is isset and unset in php?
What does mvc stand for and what does each component do?
How does csrf token work?
Is empty check in php?
What is polymorphism?
What is config file in php?
What is the use of htmlentities in php?
Which framework is best for php?
What is helper function?
What is the function used to change the root directory in PHP?
In php, objects are they passed by value or by reference?