PHP function move_uploaded_file()
Availability in versions: PHP 4.0.3
Moves an uploaded file to a new location
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$filename |
string |
not | The filename of the uploaded file. |
$destination |
string |
not | The destination of the moved file. |
Return values
bool
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.