My little brother. The name of the input in the file upload class is not equal to the array
Source: Internet
Author: User
Why can't I have the name of input in this file upload class equal to an array?
Class Syfile {
Private $_upl_dir;
Private $_refu_type;
Private $_acce_type;
Private $_errno = 0;
Private $_ext;
Public function __construct ($_upl_dir = '.. /upload ', $size = 8388608) {
$this->_upl_dir = $_upl_dir;
if (Is_numeric ($_size)) @ini_set (' Upload_max_filesize ', Intval ($_size));
$this->check_upload_dir ();
}
/**
* Set the Accept file extension
* @param $acce _type;
*/
Public Function Set_accept_type ($acce _type) {
$this->_acce_type = $acce _type;
}
/**
* Set the refuse file extension
* @param $refuse _type;
*/
Public Function Set_refuse_type ($refuse _type) {
$this->_refu_type = $refuse _type;
}
/**
* Handing the files from the speicified file input.
* @param $name (the file input name)
* @param $over (if isn ' t overwrite the file)
*/
Public function upload ($name, $_prefix = ", $over = True) {
$_error = $_files[". $name." [' Error '];
$_local = $_files[". $name." [' Name '];
$_temp = $_files[". $name." [' Tmp_name '];
$_files = NULL;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.