Reply to Re: detect http or https in script

Your name:

Reply:


Posted by Martin Lucas-Smith on 06/20/05 15:25

On Mon, 20 Jun 2005, ChrisJ wrote:

> I need to include some javascript in my pages to display a "trusted"
> logo. I need one script if its an https page and a different one if its
> an http page. All the pages are created dynamically by the oscommerce
> scripts. How can I detect whether the page is to be delivered over http
> or https so I can choose which to display?


Try parsing the result of $_SERVER['SERVER_PROTOCOL'] for instance.

This and other very useful server variables are shown if you do

phpinfo ();


Martin

[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

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