https

October 3, 2011October 3, 2011 on PHP tagged detect https, detect ssl, https, php https, php ssl

How to detect HTTPS SSL

You can detect HTTPS with the code line below in PHP if (!isset($_SERVER[‘HTTPS’]) || $_SERVER[‘HTTPS’] != ‘on’) { //Your code here }

Newsletter

↑
  • Home
  • About Me
  • Contact Me