好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

phpis_uploaded_file函数怎么用

php is_uploaded_file函数用于判断指定的文件是否是通过 HTTP POST 上传的,其语法是is_uploaded_file(file),参数file必需,指规定要检查的文件。

php is_uploaded_file函数怎么用?

作用:判断指定的文件是否是通过 HTTP POST 上传的。

语法:

is_uploaded_file(file)

参数:

file必需。规定要检查的文件。

说明:

如果 file 所给出的文件是通过 HTTP POST 上传的则返回 TRUE。

php is_uploaded_file()函数使用示例

<?php
$file = "index.txt";
if(is_uploaded_file($file))
{
    echo "该文件是上传的";
}else{
    echo "该文件不是上传的";
}
?>

输出:

该文件不是上传的

以上就是php is_uploaded_file函数怎么用的详细内容,更多请关注Gxl网其它相关文章!

查看更多关于phpis_uploaded_file函数怎么用的详细内容...

  阅读:58次