开发者

SSL: Display unscure items through php proxy

My site is protected with SSL (https) I need to embed some images that are on an unsecured site (http).

How can I avoid the s开发者_如何学运维ecurity errors recieved when trying to show content that was not delivered through https.

Example: http://0.chart.apis.google.com/chart?chtt=Answered+Calls&cht=bhs&chs=780x150&chbh=35,0,15&chg=8.33,0,5,5&chd=t:0,2&chco=4D89F9|C6D9FD&chf=bg,s,f8f8f8&chxt=x,y&chxl=1:|Answered|Unanswered&chds=0,2&chxr=0,0,2

Is there anyway I can pass this through a proxy to avoid errors???


Put this into a file called "chart.php" and use it as the image's src:

<?php
echo readfile("http://0.chart.apis.google.com/chart?chtt=Answered+Calls&cht=bhs&chs=780x150&chbh=35,0,15&chg=8.33,0,5,5&chd=t:0,2&chco=4D89F9|C6D9FD&chf=bg,s,f8f8f8&chxt=x,y&chxl=1:|Answered|Unanswered&chds=0,2&chxr=0,0,2");
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜