note 14468 added to security.registerglobals.php
| From: | yohgaki at hotmail dot com | Date: | Wed, 01 Aug 2001 11:24:24 +0000 |
| Subject: | note 14468 added to security.registerglobals.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16162@lists.php.net to get a copy of this message | ||
The line in example 4-10
mail("admin@example.com", "Possible breakin attempt",
"$REMOTE_IP_ADDR");
should be
mail("admin@example.com", "Possible breakin attempt",
$HTTP_SERVER_VARS['REMOTE_ADDR']);
http://www.php.net/manual/en/security.registerglobals.php