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
Navigation:
[Reply to this message]
|