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'];
?>
Unlike page based web applications, Ajax applications tend to present a lot of functionalities within single view without reloading the entire page and thereby avoiding any changes to the browser’s history. This is extremely efficient in delivering page content but at the same time also gives an unique problem to Ajax application developers who wishes […]