Reply to Re: [PHP] most reliable way to test if using https

Your name:

Reply:


Posted by Matt on 01/14/06 06:20

James Benson wrote:

> What is the most reliable way to test if a connection is already using
> the https protocol, is their a PHP constant or something builtin already?
>
>
>
> Thanks,
> James
>
Something like?

if (isset($_SERVER["HTTPS"]) && 'on' == $_SERVER["HTTPS"])
{// ssl
} else {
// non-ssl
}

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация