Ip address is considered to be unique identifier of local machine. But When proxy servers are used, then every machine using the proxy server uses the same ip address. Hence the $_SERVER[] variable just gives the same ip address for all the machines. I really needed a php function to capture the ipv4 address of the machine, if not anything unique will do. So that i can identify or differentiate between users accessing the site from different machine. Please help me.
Could you use sessions or cookies? These can be used to differentiate between users.
Have you tried the php function get_browser
?
This is not able to differentiate user with 100% success but could be a real clue as it return a 26 item array.
What about setting a $_COOKIE
http://php.net/manual/en/function.setcookie.php
setcookie("was_here", $_SERVER['REMOTE_ADDR'], strtotime('+1 year')); /* expire after 1 year */