(PHP 4 >= 4.1.0, PHP 5, PHP 7)
$_FILES -- $HTTP_POST_FILES [deprecated] — HTTP File Upload variables
An associative array of items uploaded to the current script via the HTTP POST method. The structure of this array is outlined in the POST method uploads section.
$HTTP_POST_FILES contains the same initial information, but is not a superglobal. (Note that $HTTP_POST_FILES and $_FILES are different variables and that PHP handles them as such)
|4.1.0||Introduced $_FILES that deprecated $HTTP_POST_FILES.|
This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. There is no need to do global $variable; to access it within functions or methods.
- move_uploaded_file() - Moves an uploaded file to a new location
- Handling File Uploads
Variables in PHP
Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive. Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.
Is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML