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'];
?>
Overwhelmed by all the documentation and resources? We are sharing you 3 most popular articles in the ZK community here. Check them out today and see if you find them useful as well. ZK Dos and Don’ts Series ZK offers a lot of features and flexibility but it is not always trivial which way to go […]