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];
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];