php获取服务器ip

php获取服务器ip:

$host= gethostname();

$ip= gethostbyname($host);

你可能感兴趣的:(php获取服务器ip)