教你如何使用php判断服务器是否是HTTPS连接
发布时间:2022-07-22 12:34 所属栏目:121 来源:互联网
导读:需要判断代码运行环境是否是HTTPS服务器?下面的代码可以帮助你实现,非常简单 复制代码 代码如下: 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
需要判断代码运行环境是否是HTTPS服务器?下面的代码可以帮助你实现,非常简单 复制代码 代码如下: 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"; }。 (编辑:ASP站长网) |
相关内容
网友评论
推荐文章
热点阅读