super-forum获取用户当前ip信息

发表:1年前 更新:1年前
开发 |
1733
| 5

这里一共提供了两个函数,get_client_ipget_client_ip_data

接下来讲讲它们的用法

获取 IP

<?php

return get_client_ip();

获取 IP 归属地等信息

<?php

$ip = get_client_ip();
return get_client_ip_data($ip);
signature
保持理智

全部评论

Nico
最佳回复
发表 :1年前 | 修改过
zhuchunshu 发表 1年前
在做新的,vditor自带的样式我删了

推荐站长试试 https://codex.so/editor 编辑器 感觉比vditor好用多了

next
ieras

发表 :1年前 | 修改过
<?php
//获取Ip
return get_client_ip();
//获取 IP 归属地等信息
$ip = get_client_ip();
return get_client_ip_data($ip);

难道没有代码高亮吗?为啥群主那么写

next
zhuchunshu

发表 :1年前
ieras 发表 1年前
<?php //获取Ip return get_client_ip(); //获取 IP 归属地等...

在做新的,vditor自带的样式我删了

next
Nico

发表 :1年前
Nico 发表 1年前
推荐站长试试 https://codex.so/editor 编辑器 感觉比vditor好用...

Vditor太醜了吧

next
zhuchunshu

发表 :1年前
Nico 发表 1年前
推荐站长试试 https://codex.so/editor 编辑器 感觉比vditor好用...

非常感谢,但貌似不支持markdown

评论

无权限

请登录后评论

RunPod公众号

赞助商

联系我们

QQ群:798695907

邮箱:laravel@88.com