note 47173 deleted from reserved.variables by tomsommer

From: Date: Sat, 27 Nov 2004 22:47:33 +0000
Subject: note 47173 deleted from reserved.variables by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-81104@lists.php.net to get a copy of this message
Note Submitter: fankounter at libero dot it ---- // ip() check right IP client, and bypass proxy http. function ip(){ global $_SERVER; $__ip=(array_key_exists("REMOTE_ADDR",$_SERVER))? $_SERVER["REMOTE_ADDR"]:FALSE; $__ip=(array_key_exists("HTTP_CLIENT_IP",$_SERVER))? $_SERVER["HTTP_CLIENT_IP"]:$__ip; $__ip=(preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $__ip))? $__ip:FALSE; return $__ip; }

« previous php.notes (#81104) next »