站长资源网络编程

如何使用php判断服务器是否是HTTPS连接

整理:jimmy2026/7/31浏览2
简介复制代码 代码如下:if ($_SERVER['HTTPS'] != "on") { echo "This is not HTTPS";}else{ echo "This is HTTPS";}if ($_SERVER['HTTPS'] != "on") { echo "This is not HT
复制代码 代码如下:
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";
}