note 34203 deleted from reserved.variables by sniper
| From: | sniper@php.net | Date: | Tue, 21 Oct 2003 19:42:50 +0000 |
| Subject: | note 34203 deleted from reserved.variables by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59061@lists.php.net to get a copy of this message | ||
Note Submitter: jeslar360@zwallet.com
----
Here is a little test I tried, to make sure a page was being viewed by
secure server. Great for Administration Scripts.
if ($_SERVER['HTTPS'] != "on")
{
$url = $_SERVER['SERVER_NAME'];
$path = $_SERVER['PHP_SELF'];
header("Location: https://$url$path");
}