Posted by Matt on 01/14/06 06:20
James Benson wrote:
> What is the most reliable way to test if a connection is already using
> the https protocol, is their a PHP constant or something builtin already?
>
>
>
> Thanks,
> James
>
Something like?
if (isset($_SERVER["HTTPS"]) && 'on' == $_SERVER["HTTPS"])
{// ssl
} else {
// non-ssl
}
Navigation:
[Reply to this message]
|