Skip to content

Instantly share code, notes, and snippets.

@sunnyluthra
Created August 21, 2012 21:25
Show Gist options
  • Save sunnyluthra/3419531 to your computer and use it in GitHub Desktop.
Save sunnyluthra/3419531 to your computer and use it in GitHub Desktop.
If a request arrived over ssl
<?php
if ('on' == $_SERVER['HTTPS']) {
//Yes, HTTPS request.
else{
//Http request
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment