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 is api laravel?
How To Get the Uploaded File Information in the Receiving Script?
Explain the differences between get and post methods?
why did u want to leave your past organisation?
What is the output of the ucwords function in this example?
What is list in PHP?
What are the methods to submit form in php?
What is query string php?
Which function is used to read a single character from a file in PHP.
What is reference variable php?
Tell me how can we define a variable accessible in functions of a php script?
What does the array operator '===' means?
How can you submit a form without a submit button?
Can php use gettext?
How do sessions work in php?