gpt4 book ai didi

php - github 上函数的未知参数

转载 作者:搜寻专家 更新时间:2023-10-31 21:08:18 25 4
gpt4 key购买 nike

我在 github 上找到了一个很好的函数,用于使用 php 上传图片,但我不知道它的参数之一。

upload_image($_FILES,'file',250,'city',500,'../../uploaded/',1048576);

Function on Github

  1. 这个函数中的"file"是什么?
  2. 这是在我的网站上使用的可信功能吗?

最佳答案

考虑the lines :

$file[$fileIndex]['tmp_name']
$file[$fileIndex]['error']
$file[$fileIndex]['name']
$file[$fileIndex]['type']
$file[$fileIndex]['size']

$filea three-dimensional array ,由nametmp_nametypesizeerror数组组成。
这是您在 uploading files in PHP 时看到的那种数组.

它调用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).
If the file is valid, it will be moved to the filename given by destination.

关于php - github 上函数的未知参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28260805/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com