UK[ˌʌpˈləʊd] US[ˌʌpˈloʊd]

n. Upward (action) load; upload (or upload) data

vt. Upload, upload

Third person singular: uploads Present participle: uploading Past tense: uploaded Past participle: uploaded

php move_uploaded_file() function syntax

Function:Move the uploaded file to a new location.

Syntax: move_uploaded_file(file,newloc)

Parameters:

ParametersDescription
file Required. Specifies the files to be moved.
newloc Required. Specifies the new location of the file.

Note: This function is only used for files uploaded through HTTP POST. If file is not a legal uploaded file, no operation will occur and move_uploaded_file() will return false.

php move_uploaded_file() function example

<?php
$file = "index.txt";
echo move_uploaded_file($file,"/phpstudy/WWW/20180402");
?>

Run instance»

Click the "Run instance" button to view the online instance

Remarks: The file is illegal, cannot be moved, and has no return value