PHP generated Thunder, Express, QQ whirlwind Download links Example _php Tutorial

Source: Internet
Author: User
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, ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.