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'];
?>
ZK 8 is on the way with various enhancements on MVVM and databinding. ARE YOU READY? MVVM is a variant of the Model/View/Controller(MVC) design pattern that helps to achieve a clean separation of your application’s data and logic from its presentation. MVVM stands for Model, View, and ViewModel. The ViewModel is an abstraction of the […]