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
Require_once(), require(), include(). What is difference between them?
Do you know what are traits?
What are variables in research examples?
How to download file in php?
How to convert the first character to upper case?
What is a string in r?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
What is curl php?
What are the features of php 7?
What is session and Cokkies . How it works . tell some thing about Session_id()
How to display your correct URL of the current web page?
What are the different loops in php?
How long do php sessions last?
What are the special characters you need to escape in double-quoted stings?
What are Routines?