But keep in mind that the var containing the value (I think
$_SERVER["HTTPS"] is the right one) is only set when https:// is used...
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