php鎬庝箞鑾峰彇褰撳墠鐨刪ttps
浣跨敤php鑾峰彇褰撳墠https锛屽叿浣撴柟娉曞涓嬶細
function get_http_type()
{
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' ;
return $http_type;
}