RE: [PHP] https://...
| From: | Vail, Warren | Date: | Wed, 27 Oct 2004 22:10:34 +0000 |
| Subject: | RE: [PHP] https://... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200483@lists.php.net to get a copy of this message | ||
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@gmail.com]
Sent: Wednesday, October 27, 2004 3:01 PM
To: php-general
Subject: Re: [PHP] https://...
On Wed, 27 Oct 2004 16:35:14 -0500, Afan Pasalic <afan@afan.net> 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
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php