But SERVER PORT is not always 80 using HTTP (not HTTPS). So this way is not really secure.
Alex "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I usually just use $_SERVER['SERVER_PORT'] > > -Rasmus > > On Sat, 5 Apr 2003, Alexander Weber wrote: > > > Unfortunally is not set. It's like the variable does not exist, because when > > I extract the varaible $_SERVER with foreach I don't get HTTPS as key, only > > SERVER_PROTOCOL. > > > > I'm using PHP 4.3.1 as Apache2 Module on Win2k SP3. > > register_globals OFF > > safe:mode OFF > > > > stunnel 4.04 on x86-pc-mingw32-gnu WIN32 with OpenSSL 0.9.7 31 Dec 2002 > > > > If you need more info: > > > > ICQ 46858764. > > > > Thanx > > > > Alex > > > > "John W. Holmes" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > news:[EMAIL PROTECTED] > > > > anybody knows how to find out the connection type (http or httpS)? > > > Tried > > > > out > > > > $HTTP_SERVER_VARS. > > > > > > $_SERVER['HTTPS'] will be set if it's over HTTPS. > > > > > > ---John W. Holmes... > > > > > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > > > today. http://www.phparch.com/ > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php