What is the difference between using copy() and move()
function in PHP file uploading?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sarah crewe
copying a file means making a duplicate copy of the file,
moving a file means to drag a file from one place to another. it will have the same effect like cut and paste.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / vishwanath
copy the particular file source to target
for Example A directory have qw.txt copy to B directory
after the copy the A directory have qw.txt and B directory
have qw.txt
In move the A directoru does'n have qw.txt
| Is This Answer Correct ? | 19 Yes | 22 No |
Answer / ashish zarkar intercom online
One Big difference between copy and move command that is we
can just use move command once but the copy can use more
then one thime
| Is This Answer Correct ? | 5 Yes | 17 No |
What is strlen php?
What is the difference between print() and echo() in PHP?
How do you remove whitespace from the beginning and end of a $string variable?
How to read one character from a file?
Is php an api?
How data or variable can be receive or send from PHP to HTML page??
Make a "dynamic drop down list" with using only PHP,HTML and MySQL..
How do you destroy a session?
What are the security measures we have to take for our site not to hack by others.
3 Answers Infosys, Torque Infotech,
How we get browser details of clients machine?
How to concatenate two strings in php?
Which functions are used to count the total number of array elements in php?