note 122859 deleted from reserved.variables.server by cmb

From: Date: Sun, 28 Jul 2019 08:04:45 +0000
Subject: note 122859 deleted from reserved.variables.server by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211715@lists.php.net to get a copy of this message
Note Submitter: ywarnier at beeznest dot org ---- For 'HTTPS', the note: "Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol." is also true for Nginx + PHP-FPM. It is not empty(), it is set to 'off'. So, to test it in a portable way, use this rather than "just" empty(): if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') { // You are sure it's really HTTPS }

« previous php.notes (#211715) next »