note 36878 added to language.variables.predefined
| From: | mark at pitchpipe dot org | Date: | Sun, 26 Oct 2003 02:21:33 +0000 |
| Subject: | note 36878 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59292@lists.php.net to get a copy of this message | ||
I had always mistakenly assumed that superglobal $_COOKIE (while preferred) was identical to the
outdated $HTTP_COOKIE_VARS. However, if you assign:
$_COOKIE['destroyWorld'] = "true";
if (isset($HTTP_COOKIE_VARS['destroyWorld'])) {
$temp =& new Armeggedon();
$temp->pushRedButton();
}
then the world will be safe forever. Might throw off a newbie, or someone like me who was updating
really old code bit-by-bit.
----
Manual Page -- http://www.php.net/manual/en/language.variables.predefined.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36878
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36878&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36878&report=yes
Search -- http://master.php.net/manage/user-notes.php