Skip to content

Instantly share code, notes, and snippets.

@chrisblackwell
Created March 9, 2012 01:33
Show Gist options
  • Save chrisblackwell/2004526 to your computer and use it in GitHub Desktop.
Save chrisblackwell/2004526 to your computer and use it in GitHub Desktop.
Check if server is HTTPS
if ($_SERVER['HTTPS'] != "on") {
echo "This is not HTTPS";
}else{
echo "This is HTTPS";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment