function get_ipv4(){
if (isset($_ENV["HOSTNAME"])){
$MachineName = $_ENV["HOSTNAME"];
} else if(isset($_ENV["COMPUTERNAME"])){
$MachineName = $_ENV["COMPUTERNAME"];
}else{
$MachineName = "";
}
return gethostbyname($MachineName);
}
本文为看恩吧原创文章,转载无需和我联系,但请注明来自knsay.com
打赏