如何使用php判断服务器是否是HTTPS连接
时间:2021-05-04 10:51:23|栏目:PHP代码|点击: 次
复制代码 代码如下:
if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}






