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
Is empty function c++?
Which cryptographic functions in php returns the longest hash value?
Tell me how would you declare a function that receives one parameter name hello?
What are the methods of array in java?
Is php easy language to learn?
What is php constructor?
What is csrf cookie?
How can we calculate the similarity between two strings?
What is echo in html?
What is restful api?
How can you send http header to the client in php?
Explain me soundex() and metaphone()?
Explain the difference between session and cookies in php?
What is session and why do we use it?
Explain me is it possible to destroy a cookie?