The move_uploaded_file() function moves the uploaded file to a new location.
The function returns TRUE if successful and FALSE if failed.
move_uploaded_file(file,newloc)
parameter | describe |
---|---|
file | Required. Specifies the files to be moved. |
newloc | Required. Specifies the new location of the file. |
Note: This function only works with files uploaded via HTTP POST.
Note: If the target file already exists, it will be overwritten.