Syntax: $_FILES

Files can be uploaded from a browser to the server with forms using the “file” input type.

Example:
Code:

File:

Explanation: HTML code for file.

Example:
Code:


print_r($_FILES);

Output:

Array (
[file] => Array (
[name] => Desert.jpg
[type] => image/jpeg
[tmp_name] => C:\wamp\tmp\phpD31E.tmp
[error] => 0
[size] => 845941 ) )

Explanation: It gives information about uploaded files.

eXTReMe Tracker