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

显示访客的IP地址_PHP

WBOY
Release: 2016-06-01 12:31:35
Original
1056 people have browsed it

IP地址

  

说明:

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

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

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

  注意:把$应为半角
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template