Sometimes in our mind being advanced to know about who are the people visit my website or blog. Its very much important to improve feature and content of website according to visitor behavior. In here i’m trying to track visitors ip address using php language. So people enjoy it…
<?php function get_visitor_ip() { if($_SERVER){ if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $ip_adress = $_SERVER['HTTP_X_FORWARDED_FOR']; elseif(isset($_SERVER['HTTP_CLIENT_IP'])) $ip_adress = $_SERVER['HTTP_CLIENT_IP']; else $ip_adress = $_SERVER['REMOTE_ADDR']; } else { if(getenv('HTTP_X_FORWARDED_FOR')) $ip_adress = getenv('HTTP_X_FORWARDED_FOR'); elseif(getenv('HTTP_CLIENT_IP')) $ip_adress = getenv('HTTP_CLIENT_IP'); else $ip_adress = getenv('REMOTE_ADDR'); } return $ip_adress; } ?>
I’m not sure exactly why but this website is loading extremely slow for me. Is anyone else having this issue or is it a issue on my end? I’ll check
back later on and see if the problem still exists.
This website is under wordpress subdomain so usually its may be slow than other website. But its not too much.