<?php
$t=$_GET[‘xh_123456’];
$t=str_replace(‘%3D’,”,$t);
$t=base64_decode($t);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<style type="text/css">
body, html {
height: 98%;
}#playlive {
height: 100%;
}
</style>
<script type="text/javascript" src="/js/jquery-1.9.1.min.js?r=2"></script>
</head>
<body>
<div id="playlive"></div>
<script>
var data ={"html":'<iframe src="<?=$t?>" width="100%" height="100%" frameborder=0 webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>’};
$("#playlive").html(data.html);
</script>
</body>
</html>
<iframe src="<?=$t?>"
这里的 <?=$t?>字符是 base64_decode转化后的字段,但是转换后都是HTTP不是HTTPS,在HTTPS状态下访问不了,如何给他<?=$t?>这个结果自动转换成HTPPS
比如:平时都是转换成的结果一般都是 http://baidu.com
如何给你自动转换成 https://baidu.com 或 //baidu.com
吉林网友:有没有大佬帮帮我
江西网友:
- $t=$_GET[‘xh_123456’];
- $t=str_replace(‘%3D’,”,$t);
- $t = str_replace("http","https",base64_decode($t));
复制代码
楼主试试这样行吗
香港网友:大佬牛逼,谢谢大佬。大佬万岁,祝大佬2019一路发发发!!!!!!!!!!!!!!!!!!!!
香港网友:没有没有 我小白一个
澳门网友:原链接如果是https的话会不会把https替换成httpss?
山东网友:是什么驱使你有在decode前替换字符的想法….
- $t = str_replace(‘http://’,’https://’,base64_decode($t));
复制代码
湖北网友:因为爱情
广东网友:等号得罪谁了 要被替换掉^
未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 全球程序员论坛,base64如何自动转换成https