IP Address: Capture and Format
Posted: Wed Sep 06, 2006 9:29 am
I was wondering if anyone could tell me how to capture a person's ip address who visits my site.
I've seen $_SERVER['REMOTE_ADDR'] and was wondering if this was the best way of doing so.
Also, lets say the user's ip address is: 203.279.16.123 OR 203.279.16.55
How can I have it displayed as 203.279.16.xxx OR 203.279.16.xx
Thanks.
I've seen $_SERVER['REMOTE_ADDR'] and was wondering if this was the best way of doing so.
Also, lets say the user's ip address is: 203.279.16.123 OR 203.279.16.55
How can I have it displayed as 203.279.16.xxx OR 203.279.16.xx
Thanks.