Jump to content

Move_upload_file and copy


jeeva

Recommended Posts

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/34616

From experience you should always use move_uploaded_file when dealing with uploads.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.