note 45411 added to reserved.variables

From: Date: Mon, 06 Sep 2004 07:21:04 +0000
Subject: note 45411 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-76088@lists.php.net to get a copy of this message
Using Apache/mod_ssl, there are further environment variables available to check for an SSL connection (can be more useful than $_SERVER['SERVER_PORT']), documented here: http://www.modssl.org/docs/2.8/ssl_reference.html#ToC25 To test whether the client connected with SSL I can use $_SERVER['HTTPS'] e.g (with redirect to secured, current URL); <?php if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on' ) { header ('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); } ?> ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45411 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45411&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45411&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76088) next »