The move_uploaded_file() function moves an uploaded file to a new destination.
Note: This function only works on files uploaded via PHP's HTTP POST upload mechanism.
Note: If the destination file already exists, it will be overwritten.
move_uploaded_file(
file,
dest)
Parameter | Description |
---|---|
file | Required. Specifies the filename of the uploaded file |
dest | Required. Specifies the new location for the file |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!