标签:http io ar sp cti on c r bs
function
is_SSL(){
if
(!isset(
$_SERVER
[
‘HTTPS‘
]))
return
FALSE;
if
(
$_SERVER
[
‘HTTPS‘
] === 1){
//Apache
return
TRUE;
}
else
if
(
$_SERVER
[
‘HTTPS‘
] ===
‘on‘
) {
//IIS
return
TRUE;
}
elseif
(
$_SERVER
[
‘SERVER_PORT‘
] == 443) {
//其他
return
TRUE;
}
return
FALSE;
}
标签:http io ar sp cti on c r bs
原文地址:http://www.cnblogs.com/shsgl/p/3991001.html