Re: Detecting if browser is using a HTTP or HTTPS connection to view the page

From: Date: Tue, 13 Jul 2004 20:12:56 +0000
Subject: Re: Detecting if browser is using a HTTP or HTTPS connection to view the page
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-190385@lists.php.net to get a copy of this message
Hello, What about the following variables: On phpinfo I have: SCRIPT_URI https://host.mydomain.com/phpinfo.php _SERVER["SCRIPT_URI"] https://host.mydomain.com/phpinfo.php Michael. On Tue, 13 Jul 2004 20:37:07 +0100 "Jamie" <jammie@pc-forums.net> wrote: > Thanks for your reply Dan, > > I have tried the $_SERVER['HTTPS'] on windows and it works fine. It replys > off when HTTPS isnt working and on when it is. But on linux it does nothing. > Can someone please confirm if this works or it does not work as i need a > method that is cross platform compatitable. > > Thanks > Jamie > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- Michael Gale Network Administrator Utilitran Corporation

« previous php.general (#190385) next »