Menu Riverview Church

MOVE_UPLOADED_FILE

Moves an uploaded file to a new location

SYNTAX

move_uploaded_file ( string $filename , string $destination ) : bool

PARAMETERS

filename

The filename of the uploaded file.

destination

The destination of the moved file.

RETURN

Returns TRUE on success. If filename is not a valid upload file, then no action will occur, and move_uploaded_file() will return FALSE. If filename is a valid upload file, but cannot be moved for some reason, no action will occur, and move_uploaded_file() will return FALSE. Additionally, a warning will be issued.

EXAMPLES


PHP