Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are interfaces in php?

970


What is cakephp framework?

1067


How does php work?

976


Explain the difference b/w static and dynamic websites?

1022


What is isset and unset in php?

1033


What does mvc stand for and what does each component do?

1083


How does csrf token work?

1020


Is empty check in php?

1035


What is polymorphism?

2508


What is config file in php?

1026


What is the use of htmlentities in php?

987


Which framework is best for php?

981


What is helper function?

947


What is the function used to change the root directory in PHP?

1017


In php, objects are they passed by value or by reference?

965