Re: Current URL is http or https?

From: Date: Fri, 17 May 2002 20:10:40 +0000
Subject: Re: Current URL is http or https?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98182@lists.php.net to get a copy of this message
Thanks! I got it: $_SERVER['HTTPS'] == "on" Steven J. Walker Walker Effects www.walkereffects.com steve@walkereffects.com On Friday, May 17, 2002, at 01:09 PM, Philip Hallstrom wrote:
I would guess you want $_SERVER["SERVER_PROTOCOL"] which returns "HTTP/1.1" for me and probably "HTTPS..." for https connections... also if you're using apache I think it sets some SSL_* variables that exist only when using https. On Fri, 17 May 2002, Steven Walker wrote:
Hi, I'm trying to find a way to determine whether a clients browser current url is prefixed by http or https. However, I cannot seem to find the right predefined variable to give me this information. Basically, I want the same thing that HTTP_REFERER provides, but for the _current_ page. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#98182) next »