Phph mendapatkan protokol server

$protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'https://' : 'http://';
Ugliest Unicorn