Re: most reliable way to test if using https
| From: | Ray Hauge | Date: | Fri, 13 Jan 2006 23:12:08 +0000 |
| Subject: | Re: most reliable way to test if using https | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228601@lists.php.net to get a copy of this message | ||
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