php 获取移动端ip和pc端ip

xiaoxiao2021-02-28  58

1,获取pc端ip

$pc_ip=$_SERVER["REMOTE_ADDR"];

2,获取移动端ip

$file_contents = file_get_contents('http://pv.sohu.com/cityjson');

$logiName= explode('"',explode(':',$file_contents)[1])[1];

转载请注明原文地址: https://www.6miu.com/read-75041.html

最新回复(0)