元问答栏目视频美女
  1. 编程问答
  2. 答案列表

php获取当前网页地址

回答列表
function is_https() {
if (!empty($_server['https']) &&strtolower($_server['https'])!== 'off') {
return true;
} elseif ( isset($_server['http_x_forwarded_proto']) &&$_server['http_x_forwarded_proto'] === 'https') {
return true;
} elseif (!empty($_server['http_front_end_https']) &&strtolower($_server['http_front_end_https'])!== 'off') {
return true;
}else{
return false;
}
}
猜你喜欢
相关推荐