Getting User’s IP
While looking in the PHP predefined variables i found an interesting one: $_ENV["REMOTE_ADDR"]. what this does is it gives the current IP of the person viewing your site. This is quite good if you are making a poll for a intranet where each user has their own username.
Have a look at this and tell me what you think.
-
$ip = $_ENV["REMOTE_ADDR"]; //set variable
-
?>
I hope somebody finds it helpful.
Popularity: unranked [?]

