<u>复制代码</u> 代码如下:<br>if ($_SERVER['HTTPS'] != "on") {<br> echo "This is not HTTPS";<br>}else{<br> echo "This is HTTPS";<br>}if ($_SERVER['HTTPS'] != "on") {<br> echo "This is not HTTPS";<br>}else{<br> echo "This is HTTPS";<br>}<br><br>