note 105848 deleted from reserved.variables.request by tularis
| From: | tularis@php.net | Date: | Tue, 20 Sep 2011 18:30:34 +0000 |
| Subject: | note 105848 deleted from reserved.variables.request by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183311@lists.php.net to get a copy of this message | ||
Note Submitter: nhl261 at yahoo dot com
----
The $_REQUEST array is convenient, but sometimes it may lead to confusion, since it contains copies
of variables from different sources (GPC), so we must be careful when using.
If your program is going to handle large submitted text data, you should remove large text fields in
the $_REQUEST as soon as possible to save resources, since the $_REQUEST contains copies from
$_POST.
For example, when the page runs, delete large data fields in $_REQUEST at very first line to make
the program lighter.
<?php
// delete unuse fields
unset($_REQUEST['very_large_text_field']);
// continue processing..
?>