GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  PHP

 Print  |  
Question:  What's the difference between COPY OF A FILE & MOVE_UPLOAD_FILE in file uploading?



September 09, 2006 05:50:52 #1
 shweta maheshwari   Member Since: Visitor    Total Comments: N/A 

RE: What's the difference between COPY OF A FILE & MOV...
 

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.

     

 

Back To Question