Re: Current URL is http or https?

From: Date: Fri, 17 May 2002 20:09:12 +0000
Subject: Re: Current URL is http or https?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98181@lists.php.net to get a copy of this message
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? > > Steven J. Walker > Walker Effects > www.walkereffects.com > steve@walkereffects.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#98181) next »