note 56603 deleted from reserved.variables by didou
| From: | didou@php.net | Date: | Sun, 23 Apr 2006 23:06:52 +0000 |
| Subject: | note 56603 deleted from reserved.variables by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109260@lists.php.net to get a copy of this message | ||
Note Submitter: montgomery at cyberartsnotgamesgrid dot com
----
The docs say $_SERVER[ 'HTTPS' ] is 'Set to a non-empty value if the script was
queried through the HTTPS protocol.'
This may well be true, but at least sometimes it's also set to a non-empty value if it was NOT
queried through HTTPS. On my machine, with http, it's set to 'off'.
So, don't be tempted to test for a non-empty value. Test for 'on'.