Hello
I am developing a website using a https connection. Naturally the IE
would cry out about the non-secure objects on the screen, and if saying
no, he would not print the google map. Following Script in PHP solves
the problem, when the call to your maps JS script is handled as below:
Proxy:
<?php
/** Everything after ? on the url line */
$loadUrl = $_SERVER [ "argv" ] [ 0 ];
/** Loading the content of the thing we got */
$content = join ( '', file ( $loadUrl ) );
/** Using it under test conditions on both http and https
connections, so we have to select here */
$scheme = ($_SERVER [ "SERVER_PORT" ] == 80 ? "http" : "https");
/** Building redirect path */
$wwwpath = $scheme."://".$_SERVER [ "HTTP_HOST" ].$_SERVER [
"SCRIPT_NAME" ]."?";
/** Replacing the content */
$content = str_replace ( "http://", $wwwpath."http://", $content );
/** Output */
echo $content;
?>
Call in Site:
<script
src="sslproxy.php?http://maps.google.com/maps?file=api&v=2&key={google_map_key}"
type="text/javascript"></script>