[Fwd: Re: https://...]

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

 



Ok, this works just great! Thanks Warren.

Also, I found after I changed manualy http:// in https:// that
SCRIPT_URI will show whole URL (https://www.....) and if I don't use SSL
will not show anything!

Thanks to all guys you wanted to help me!

-afan


Vail, Warren wrote:
Depends on the server and the release, but my apache shows

If($_SERVER["HTTPS"] == "on") // if true is secure

Lots of other information like cypher key size, etc.

Look in the $_SERVER array.

Keep in mind that lots of servers are setup to use the same htdocs base
directory for both secure and insecure pages, what happens if someone comes
to your unsecured page using https?  Another example is, if you have coded
full urls for images, the browser will usually complain if the page is
accessed via https and the image via http.

Warren Vail


-----Original Message-----
From: Greg Donald [mailto:destiney@xxxxxxxxx] Sent: Wednesday, October 27, 2004 3:01 PM
To: php-general
Subject: Re: https://...



On Wed, 27 Oct 2004 16:35:14 -0500, Afan Pasalic <afan@xxxxxxxx> wrote:

hi,
how can I check using php that I use SSL?
tried with
REQUEST_URI
HTTP_HOST
PATH_INFO
but any of these does show http://


phpinfo() describes my SSL stuff pretty well if that's what you mean.

And I also found:
http://marc.theaimsgroup.com/?l=php-general&m=109767486431095&w=2



-- 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