[英]Unknown argument on a function on github
I found a good function on github for uploading images using php, but I do not know one of its arguments. 我在github上找到了一个很好的函数来使用php上传图像,但我不知道它的一个参数。
upload_image($_FILES,'file',250,'city',500,'../../uploaded/',1048576);
Considering the lines : 考虑到线条 :
$file[$fileIndex]['tmp_name']
$file[$fileIndex]['error']
$file[$fileIndex]['name']
$file[$fileIndex]['type']
$file[$fileIndex]['size']
$file
is a three-dimensional array , composed of arrays of name
, tmp_name
, type
, size
, error
. $file
是一个三维数组 ,由name
, tmp_name
, type
, size
, error
数组组成。
It is the kind of array you see when uploading files in PHP . 它是您在PHP中上传文件时看到的那种数组。
It calls move-uploaded-file
, which moves an uploaded file to a new location. 它调用move-uploaded-file
,将上传的文件移动到新位置。
This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). 此函数检查以确保filename指定的文件是有效的上载文件(意味着它是通过PHP的HTTP POST上载机制上传的)。
If the file is valid, it will be moved to the filename given bydestination
. 如果文件有效,它将被移动到destination
给出的文件名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.