php 检查服务器是否使用HTTPS
检查服务器是否使用HTTPS [代码片段(6行)]
if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}
- 上一篇:基于PHP创建Cookie数组的详解
- 下一篇:php 获取内存使用信息
精彩图集
精彩文章
if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229