PHP implementation of the URL to convert the Thunderbolt Thunder resource Download Address method,
This article describes the PHP implementation of the URL to convert the Thunderbolt Thunder resource download Address method. Share to everyone for your reference. The specific methods are analyzed as follows:
If you know the Thunderbolt address generation rules You do not think that the URL of the Thunderbolt download address how complex,
In fact, Ray's address is the original URL before the AA with a BB after the Base64_encode code can be
As shown in the following example:
Copy the Code code as follows: <?php
function Thunder ($url, $type = ' en ') {
$url = ' http://www.bkjia.com ';
if ($type = = ' en ') {
Return "thunder://". Base64_encode ("AA". $url. " ZZ ");
}else{
Return substr (Base64_decode (substr (Trim ($url), 10)), 2,-2);
}
}
$url = ' http://www.bkjia.com ';
Echo Thunder ($url);
?>
Output Result:
thunder://qufodhrwoi8vd3d3lmpinteubmv0wlo=
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/907834.html www.bkjia.com true http://www.bkjia.com/PHPjc/907834.html techarticle PHP Implementation of the URL to convert the Thunderbolt Thunder resource Download Address method, this article describes the PHP implementation of the URL to convert the Thunderbolt Thunder resources Download Address method. Share to everyone for your reference. ...