Re: Getting full URL

From: Date: Tue, 08 Aug 2000 16:07:34 +0000
Subject: Re: Getting full URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10723@lists.php.net to get a copy of this message
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


« previous php.general (#10723) next »