这篇文章介绍的内容是关于php利用qqwry.bat获取实际使用地址,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
步骤如下:
1.获取ip地址,例如:
$ip = '100.100.100.1';
2.通过composer下载
composer require oscarhan/ip-get
或者再github上下载包
git clone https://github.com/ouhaohan8023/ipget.git
3.在程序中使用
下面介绍在thinkphp中如何使用
use oscar\ipget\ipget;
$ip = '100.100.0.1';
$model = new ipget();
$location = $model->getlocation($ip);
var_dump($location);//xxxxx内蒙云基地
相关推荐:
php利用curl将他人服务器图片上传到自己的图片云空间
以上就是php利用qqwry.bat获取实际使用地址的详细内容。