Re: Testing for secure server
| From: | jeremy brand | Date: | Tue, 28 Nov 2000 21:07:30 +0000 |
| Subject: | Re: Testing for secure server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27679@lists.php.net to get a copy of this message | ||
You can test for $HTTPS == 'on' or worse case, $SERVER_PORT = '443'.
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
"We're all Linux all the time, and very proud of it"
Jim Reese, Chief Operations Engineer, Google.com
On Tue, 28 Nov 2000, Boget, Chris wrote:
> Date: Tue, 28 Nov 2000 15:06:35 -0600
> From: "Boget, Chris" <Chris.Boget@wild.net>
> To: "PHP (E-mail)" <php-general@lists.php.net>
> Subject: [PHP] Testing for secure server
>
> How can you test to see if the user is on a secure server?
> I want to do something like this:
>
> if( !$secure_server ) {
> header( "location: https://$HTTP_HOST$PHP_SELF" );
> exit();
>
> }
>
> So that if a user accesses the page normally, it would detect
> that and send them to that same page on the secure server.
>
> I just need to figure out how to get the value for
>
> $secure_server
>
> Any ideas?
>
> Thanks!
>
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>