RE: [PHP] Getting full URL

From: Date: Tue, 08 Aug 2000 16:23:13 +0000
Subject: RE: [PHP] Getting full URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10731@lists.php.net to get a copy of this message
Hi. You might also be interested in $HTTPS.. it's set to "on" if SSL is in use. Regards, Matthew Clark. >-----Original Message----- >From: Wico de Leeuw [mailto:wico@cnh.nl] >Sent: 08 August 2000 05:08 PM >To: Martin Thoma; php-general@lists.php.net >Subject: Re: [PHP] Getting full URL > > >At 17:45 8-8-00 +0200, Martin Thoma wrote: >>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 ? > >Hiya > >use $SERVER_PORT > >port 21 = ftp:// >port 80 = http:// >port 443 = https:// > >Greetz, > >Wico > >>Regards >> >>Martin >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>For additional commands, e-mail: php-general-help@lists.php.net >>To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#10731) next »