On Tue, Feb 26, 2008 at 11:12 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>  And it doesn't say "off".  It either exists or doesn't.
>
>  if ( isset($_SERVER['HTTPS']) ) {
>         // Is using SSL
>  } else {
>         // Is NOT using SSL
>  }

    Almost correct.

    From http://php.net/reserved.variables :

 'HTTPS'
    Set to a non-empty value if the script was queried through the
HTTPS protocol. Note that when using ISAPI with IIS, the value will be
off if the request was not made through the HTTPS protocol.

-- 
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to