PHP检查服务器是否使用HTTPS代码
if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}
PHP检查服务器是否使用HTTPS代码
PHP检查服务器是否使用HTTPS代码
if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}