如何使用php判断服务器是否是HTTPS连接
发布时间:2016-12-29 来源:查字典编辑
摘要:复制代码代码如下:if($_SERVER['HTTPS']!="on"){echo"ThisisnotHTTPS";}else{echo"T...
复制代码 代码如下:
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";
}