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 is api laravel?

1092


How To Get the Uploaded File Information in the Receiving Script?

1024


Explain the differences between get and post methods?

965


why did u want to leave your past organisation?

2056


What is the output of the ucwords function in this example?

1018


What is list in PHP?

1104


What are the methods to submit form in php?

1003


What is query string php?

970


Which function is used to read a single character from a file in PHP.

1042


What is reference variable php?

1018


Tell me how can we define a variable accessible in functions of a php script?

937


What does the array operator '===' means?

1040


How can you submit a form without a submit button?

960


Can php use gettext?

1021


How do sessions work in php?

989