note 79185 added to reserved.variables

From: Date: Wed, 14 Nov 2007 18:03:36 +0000
Subject: note 79185 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-132279@lists.php.net to get a copy of this message
In response to mathiasrav's getip() implementation on 28-Jul-2007, it should be noted that it: - assumes IPv4 addresses only - returns $_SERVER['REMOTE_ADDR'] for any value of $_SERVER['HTTP_CLIENT_IP'] that matches 127.0.*.*, 192.168.*.* or 10.0.*.*, which is not desirable if you actually WANT the value of HTTP_CLIENT_IP dlyaza's prior snippet has neither of these problems. ---- Server IP: 193.226.19.85 Probable Submitter: 216.183.8.3 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- https://master.php.net/note/edit/79185 Del: integrated -- https://master.php.net/note/delete/79185/integrated Del: useless -- https://master.php.net/note/delete/79185/useless Del: bad code -- https://master.php.net/note/delete/79185/bad+code Del: spam -- https://master.php.net/note/delete/79185/spam Del: non-english -- https://master.php.net/note/delete/79185/non-english Del: in docs -- https://master.php.net/note/delete/79185/in+docs Del: other reasons-- https://master.php.net/note/delete/79185 Reject -- https://master.php.net/note/reject/79185 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132279) next »