Skip to content

Instantly share code, notes, and snippets.

@mrroot5
Last active August 29, 2016 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrroot5/aa94a1546dd8b4433f2b to your computer and use it in GitHub Desktop.
Save mrroot5/aa94a1546dd8b4433f2b to your computer and use it in GitHub Desktop.
$protocol = (stripos($_SERVER['SERVER_PROTOCOL'],'https') === true) ? 'https://' : 'http://';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment