This article will explain how to handle the PHP function, easy to produce a variety of third-party download tools (such as thunder, Express, QQ Whirlwind) Download link data, and directly output to the foreground, but also can be converted to the link to restore the original download address.
The PHP function used by this function is mainly the following two:
1. Base64_encode: Used to encrypt strings in base64 manner;
2. Base64_decode: Used to decrypt a string that is encrypted in base64 manner.
The following directly through the example explanation, basically can understand, do not do a detailed explanation.
<title>PHP generated Thunder, Express, QQ whirlwind Download Link method</title>
"thunder://". Base64_encode ("AA". $url. " ZZ "), ' flashget ' = ' flashget://'. Base64_encode (" [FlashGet] ". $url." [FLASHGET] ")." &aiyh ", ' qqdl ' =" qqdl://". Base64_encode ($url));} Else{return ';} return $url;} $url =isset ($_get[' url '])? $_get[' URL ']: '; $result =zhuanhuan ($url);? >
Address: "target=" >
"_blank"
Thunderbolt chain: "target=" _blank ">
Express Chain: "target=" >
"_blank"
Cyclone chain: "target=" > "_blank"
Actual address: "target=" > "_blank"
The effect of the page is as follows:
Articles you may be interested in
- The idea and implementation method of PHP generating short URLs
- PHP uses curl to implement multi-threaded classes, php curl multithreading download pictures
- PHP uses Curl Functions to crawl Web pages and download files in multiple threads
- PHP Generate dynamic Captcha image (GIF)
- PHP get remote picture and download save to local
- PHP with header () to achieve file download, download the file hint is broken can not open the solution
- Use PHP function memory_get_usage to get the current PHP memory consumption to achieve program performance optimization
- Simple example of PHP getting Web content via socket
http://www.bkjia.com/PHPjc/764097.html www.bkjia.com true http://www.bkjia.com/PHPjc/764097.html techarticle This article will explain how to process through the PHP function, easy to produce a variety of third-party download tools (such as thunder, Express, QQ Whirlwind) Download link data, and directly output to the front desk, ...