Re: Getting full URL

From: Date: Tue, 08 Aug 2000 15:45:36 +0000
Subject: Re: Getting full URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10706@lists.php.net to get a copy of this message
Boget, Chris wrote: > > How can I get the *full* url, including the "HTTP://"? > I know how I can get the other parts, but not how I > can get the http part. I need this so I can determine if > the user is on the secure server (https) or not and if not, > send them there. > Any help would be appreciated! .. I couldn't test it, but couldn't you use the $SERVER_PROTOCOLL variable to check for HTTP/HTTPS ? Regards Martin

« previous php.general (#10706) next »