doc1355 Posted September 3, 2008 Share Posted September 3, 2008 How can I detect http vs https in the browser? I want to use a banner on a website, but I want to be able to display the banner only if the browser is in non-SSL page, to prevent the security alert from IE. The banner comes from Google AdSence that does not provide SSL link Thanks Link to comment https://forums.phpfreaks.com/topic/122490-detec-http-vs-https-in-browser/ Share on other sites More sharing options...
ratcateme Posted September 3, 2008 Share Posted September 3, 2008 try this if($_SERVER["HTTPS"] == 'on'){ //dont show banner }else{ //show banner } Scott. Link to comment https://forums.phpfreaks.com/topic/122490-detec-http-vs-https-in-browser/#findComment-632485 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.