Toggle between HTTP and HTTPS (only applies to Download Solution with https enabled servers)

SUMMARY

NOTE: This only applies to Download Solution clients whom already have a secure server enabled.

If you would like for your PHP Live system to toggle between HTTP and HTTPS without displaying security messages, then you can perform the following tasks.

1. Edit your phplive/web/conf-init.php file and change the BASE_URL from...

Code:
$BASE_URL = 'http://www.domain.com/phplive' ;


to...

Code:
$BASE_URL = '//www.domain.com/phplive' ;



2. Login to your admin area and go to "Generate HTML" and regenerate your HTML.
Your generated HTML should now look like this.

Code:


<!-- BEGIN PHP Live! code, (c) OSI Codes Inc. -->
<script language="JavaScript" src="//www.domain.com/phplive/js/status_image.php

?base_url=//www.domain.com/phplive&l=adminusername&x=1&deptid=0&"><a href="http://www.phplivesource.com"></a></script>
<!-- END PHP Live! code : (c) OSI Codes Inc. -->



3. Now replace your old PHP Live HTML on your website with the newly generated HTML.

You can now use PHP Live on both your HTTP and HTTPS websites.


NOTICE that the modified HTML code does not have "http:" anywhere. This way, whatever your URL is at (secure https or non-secure http), it will match the current http or https.

 Article ID: 99
 Created: December 6, 2005
 Updated: December 6, 2005
 Rating: 3.1 (1078 votes)
(1078 votes)

Can't find your answer? Ask a Question, and we'll get back with you.

  © OSI Codes, Inc. All Rights Reserved