jeeva Posted January 4, 2007 Share Posted January 4, 2007 hi frnds,wt is the difference between [b]Move_upload_file()[/b] and [b]Copy()[/b] ?i think,Both are doing the same copy the file source to destination or any other difference is there?Any one can tell me?Thanks in advancejeeva Quote Link to comment Share on other sites More sharing options...
papaface Posted January 4, 2007 Share Posted January 4, 2007 Google is wonderful by the way :)[quote]Move : This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination.If filename is not a valid upload file, then no action will occur, and move_uploaded_file() will return FALSE.Copy :Makes a copy of a file. Returns TRUE if the copy succeeded, FALSE otherwise. [/quote]From http://www.geekinterview.com/question_details/34616From experience you should always use move_uploaded_file when dealing with uploads. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted January 4, 2007 Share Posted January 4, 2007 The PHP manual is even better than Google, as it is the source of all the PHP language reference information you are likely to find on the Internet - http://www.php.net/docs.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.