News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroder:
What SSL $_SERVER variables are available in PHP
September 02, 2013 @ 09:24:04

Kevin Schroeder has shared the results of a question he wanted answered when it came to PHP with a HTTPS (SSL) connection - which of the $_SERVER variables are available.

I found myself wondering what HTTPS variables were available in the $_SERVER variable today and didn't find a specific list (and didn't have mod_ssl installed). So as a public service, here is what my server says.

Thanks to some of the additional handling and information the SSL connection provides to PHP, there's several additional variables including things like:

  • SSL_PROTOCOL
  • HTTPS (set to "on")
  • SSL_COMPRESS_METHOD
  • SSL_CLIENT_VERIFY
0 comments voice your opinion now!
ssl server superglobal variable

Link: http://www.eschrade.com/page/what-ssl-_server-variables-are-available-in-php/

blog comments powered by Disqus

Similar Posts

David Otton's Blog: Neat PHP Tricks: How To Assign References to Globals

Christian Weiske's Blog: Generating CHM files w/Wine on Linux & a bit about PEAR's PhD trasition

PHPBuilder.com: The ABC's of PHP Part 4 - How Variable Am I?

Greb Beaver\'s Blog: Chiara_PEAR_Server 0.18.4 released

Alex Netkachov's Blog: 6 PHP coding tips to write less code


Community Events





Don't see your event here?
Let us know!


series refactor community developer opinion list introduction interview threedevsandamaybe language podcast install configure release code unittest symfony2 testing laravel framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework