Re: IP Address
| From: | Richard Lynch | Date: | Mon, 23 Oct 2006 21:39:19 +0000 |
| Subject: | Re: IP Address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243517@lists.php.net to get a copy of this message | ||
On Sat, October 21, 2006 6:55 pm, Fred Moses wrote:
> Is there a function which returns the IP address of the requestor of
> the
> current page?
Any question like this:
"Is there a way to find out X that came in from the user"
is almost always answered by adding this to the top of your code:
<?php phpinfo();?>
Also, be aware that the IP is pretty useless for anything other than
entertainment value. It's not unique, it's not stable, it's not
reliable, it's not useful for identification nor authentication [*],
it's pretty pointless bit of info.
[*] Obviously if you control the IP address and it is static, that is
a limited exception to this generalization, and you (hopefully)
already understood all the above *before* somebody granted you the
power to control a public static IP address... :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?