Re: most reliable way to test if using https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if( !preg_match("/HTTPS/", $_SERVER['SERVER_PROTOCOL']) ){
	....
}

That's what I have been using.

HTH

-- 
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
http://www.americanstudentloan.com
1.800.575.1099

On Friday 13 January 2006 04:05 pm, 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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux