if (!empty($_SERVER['HTTP_CLIENT_IP']))
$ip=$_SERVER['HTTP_CLIENT_IP'];
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else
$ip=$_SERVER['REMOTE_ADDR'];
?>
Using any possible component property name as a variable name in a ZUL page or any component based dynamic web page technology is always a bad idea . This can be justified by the following reasons: 1. Variable resolve (lookup) in any dynamic web page is normally based on the stack concept . Imagine a […]