Jump to content

SSL vs NON-SSL


stephanes

Recommended Posts

Hi,

 

I have a live chat widget. To have the widget to work in SSL pages, I had to change in all .php this: if(!strstr($hostdomain,"http")){ $hostdomain="http://".$hostdomain; } to if(!strstr($hostdomain,"https")){ $hostdomain="https://".$hostdomain; }.

 

The problem is when I change the http to https in the code above, now the widget don't appear in non-ssl pages.

 

So my question is how can I modify the code below to have it to work with both http and https ?

Link to comment
https://forums.phpfreaks.com/topic/276948-ssl-vs-non-ssl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.