Re: IP Address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux