欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-06-07 19:59:14
复制代码 代码如下:if ($_server['https'] != "on") { echo "this is not https";}else{ e...
复制代码 代码如下:

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";
}