Created
August 21, 2012 21:25
-
-
Save sunnyluthra/3419531 to your computer and use it in GitHub Desktop.
If a request arrived over ssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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