All Dictionaries
PHP Related dictionaries
php is_uploaded_file() function
Detailed instructions for use
php is_uploaded_file() function
Chinese translation
Recent Updates: 2018-04-19 14:38:07
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 is_uploaded_file() function syntax
Function: Determine whether the specified file is uploaded through HTTP POST.
Syntax: is_uploaded_file(file)
Parameters:
| Parameter | Description |
| file | Required. Specifies the documents to be checked. |
Explanation: Returns TRUE if the file given by file is uploaded through HTTP POST.
php is_uploaded_file() function example
<?php
$file = "index.txt";
if(is_uploaded_file($file))
{
echo "该文件是上传的";
}else{
echo "该文件不是上传的";
}
?>Run instance»
Click the "Run instance" button to view the online instance
Output:
该文件不是上传的




