The move_uploaded_file() function moves an uploaded file to a new location.
move_uploaded_file()函數的做用是:將上傳的文件移動到一個新的位置。 函數
This function returns TRUE on success, or FALSE on failure.
若是該函數成功執行,將返回True;若是失敗將返回False。 ui
move_uploaded_file(file,newloc) |
Parameter 參數 |
Description 描述 |
---|---|
file | Required. Specifies the file to be moved 必要參數。指定文件參數 |
newloc | Required. Specifies the new location for the file 必要參數。指定文件移動到的新地址 |
Note: This function only works on files uploaded via HTTP POST.
注意:這個函數只能對使用HTTP POST上傳的文件進行操做。 spa
Note: If the destination file already exists, it will be overwritten.
注意:若是目標文件已經存在,它將被自動覆蓋。 code