note 87614 added to reserved.variables.files
| From: | kabhi dot iitk at gmail dot com | Date: | Fri, 12 Dec 2008 19:52:20 +0000 |
| Subject: | note 87614 added to reserved.variables.files | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148096@lists.php.net to get a copy of this message | ||
$_FILES is an array, which may look like
Array
(
[imageFile] => Array
(
[name] => 123.JPG
[type] => image/jpeg
[tmp_name] => D:\xampp\tmp\phpB8.tmp
[error] => 0
[size] => 48240
)
)
Example:
In your HTML code, you want to upload a photo
<form action="upload.php" method="POST"
enctype="multipart/form-data">
<input type="file" name="imageFile">
</form>
When this form is submitted, $_FILES array will be an associative array as shown above.
print_r($_FILES) will give all information stored in this array.
----
Server IP: 69.147.83.197
Probable Submitter: 122.167.147.118
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.files.php
Edit -- https://master.php.net/note/edit/87614
Del: integrated -- https://master.php.net/note/delete/87614/integrated
Del: useless -- https://master.php.net/note/delete/87614/useless
Del: bad code -- https://master.php.net/note/delete/87614/bad+code
Del: spam -- https://master.php.net/note/delete/87614/spam
Del: non-english -- https://master.php.net/note/delete/87614/non-english
Del: in docs -- https://master.php.net/note/delete/87614/in+docs
Del: other reasons-- https://master.php.net/note/delete/87614
Reject -- https://master.php.net/note/reject/87614
Search -- https://master.php.net/manage/user-notes.php