开发者

How to find the ip address of the users, who login into my site,php [duplicate]

This que开发者_运维问答stion already exists: Closed 12 years ago.

Possible Duplicate:

How do I find a user's IP address with PHP?

How to find the ip address of the users, who login into my site,php


$ip = $_SERVER['REMOTE_ADDR'] should do the trick.


PHP provides $ip = $_SERVER['REMOTE_ADDR']


$_SERVER['REMOTE_ADDR']

Will return the IP address where the request came from. This may be the proxy IP address however.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜