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
How to check a variable is array or not in php?
Write a query to find the 2nd highest salary of an employee from the employee table?
Tell me how to execute an sql query? How to fetch its result?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
Define metaphone()?
Explain type casting and type juggling.
Explain me what is the meaning of a persistent cookie?
Who is the father or inventor of php?
What is use of count() function in php?
What is mysql in php?
What are the string function in php?
What is form action php?
Does empty check for null?
In php, objects are they passed by value or by reference?
How can we display information of a variable and readable by human with php?