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

From: Date: Tue, 13 Jul 2004 22:48:47 +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-190412@lists.php.net to get a copy of this message
On Wednesday 14 July 2004 05:07, Jamie wrote: > > You want to specifically check for > > > > $_SERVER["HTTPS"] == "on" > > > > because if you're not using HTTPS then $_SERVER["HTTPS"] does not exist. > > If this is the case why does it work ok on my windows box? Who cares what happens on a Windows box? I'm pointing out to you why it isn't working. Just look in $_SERVER and find something that will work under whatever systems you need it to work under. If need be have more than one test. > Shouldnt it have same output accross all platforms? Not necessarily, the info in $_SERVER is largely provided by the webserver and PHP has no control over that. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* All articles that coruscate with resplendence are not truly auriferous. */

« previous php.general (#190412) next »