Home >Backend Development >PHP Tutorial >显示访客的IP地址_PHP

显示访客的IP地址_PHP

WBOY
WBOYOriginal
2016-06-01 12:31:351053browse

IP地址

  

说明:

这段代码是让访客看到自己的IP。

把下面代码放到显示的位置即可以。

echo ("Your IP is $REMOTE_ADDR");
?>

  注意:把$应为半角
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn