如何使用php判断服务器是否是HTTPS连接_php技巧
程序员文章站
2022-03-21 22:44:56
...
复制代码 代码如下:
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";
}
上一篇: Python3.5 创建文件的简单实例