note 105848 added to reserved.variables.request
| From: | nhl261 at yahoo dot com | Date: | Tue, 20 Sep 2011 06:19:24 +0000 |
| Subject: | note 105848 added to reserved.variables.request | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183285@lists.php.net to get a copy of this message | ||
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..
?>
----
Server IP: 69.147.83.197
Probable Submitter: 115.74.0.118
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.request.php
Edit -- https://master.php.net/note/edit/105848
Del: integrated -- https://master.php.net/note/delete/105848/integrated
Del: useless -- https://master.php.net/note/delete/105848/useless
Del: bad code -- https://master.php.net/note/delete/105848/bad+code
Del: spam -- https://master.php.net/note/delete/105848/spam
Del: non-english -- https://master.php.net/note/delete/105848/non-english
Del: in docs -- https://master.php.net/note/delete/105848/in+docs
Del: other reasons-- https://master.php.net/note/delete/105848
Reject -- https://master.php.net/note/reject/105848
Search -- https://master.php.net/manage/user-notes.php