In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use $_ FILES in php". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor learn how to use $_ FILES in php.
In php, "$_ FILES" is a predefined array variable that is used to get file data uploaded to the server through POST. For single file uploads, "$_ FILES" is a two-dimensional array; for multiple file uploads, "$_ FILES" is a three-dimensional array.
Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
In php, "$_ FILES" is a predefined array variable.
Predefined variables, also known as superglobal variables, can be used in all scopes without being declared in advance. Through these predefined variables, you can obtain information such as the user session, the environment of the user's operating system and the environment of the local operating system.
$_ FILES can obtain the file data uploaded to the server through POST
For single file uploads, $_ FILES is a two-dimensional array; for multiple file uploads, $_ FILES is a three-dimensional array.
Example:
Create a file.html demo upload file with the following code:
Send this file:
Create a new PHP file file.php to receive file information as follows:
After selecting a file on the file.html page, click the Send File button, and the following information will be output on the page:
Array ([userfile] = > Array ([name] = > Screen Shot 2016-05-12 at 18.13.24.png [type] = > image/png [tmp_name] = > / private/var/tmp/phplVHp3W [error] = > 0 [size] = > 344925)) so far, I believe you have a deeper understanding of "how to use $_ FILES in php". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.