How To Determine HTTP Protocol Using PHP
erics, May 11th, 2012 $protocol = (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] !== ‘off’) ? “https:” : “http:”;
$protocol = (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] !== ‘off’) ? “https:” : “http:”;
Categories: How-To's, Technology Tags: $_SERVER, 443, 80, howto, http, https, php, Port 443, Port 80, Protocol, tips
|
No comments
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | ||
Copyright © 2005-2026 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress