标签:获取ip turn 获取 else set cal get return cti
function get_server_ip() {
if (isset($_SERVER)) {
if($_SERVER[‘SERVER_ADDR‘]) {
$server_ip = $_SERVER[‘SERVER_ADDR‘];
} else {
$server_ip = $_SERVER[‘LOCAL_ADDR‘];
}
} else {
$server_ip = getenv(‘SERVER_ADDR‘);
}
return $server_ip;
}
标签:获取ip turn 获取 else set cal get return cti
原文地址:http://www.cnblogs.com/mawenzhu/p/7760141.html