Batch download templates and special effects of the "material fire" website...

Source: Internet
Author: User
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn how to batch download templates and special effects of the "material fire" website. For details, refer to the content description.
Header ('content-type: text/html; charset = gb2312 ');

/*
1. a download link (Save the code to the PHP file and run it, and a download link will be generated). You can modify and test the URL link at the bottom of 1.html 2.html 3.html... html is pseudo static.
2. tools supporting batch download using thunder and tornado
3. Create a batch download, copy and paste the generated URL to the download tool. Select all tasks and download them. Wait for completion
PHP is slow to download. We recommend that you use the download tool. PHP will not post the downloaded code.
*/
For ($ I = 1; I I <1000; $ I ++ ){
// $ Url = "http://www.sucaihuo.com/download/zip/id/polici/mtype/1.html
"; // 1 in 1.html is the Template
$ Url = "http://www.sucaihuo.com/download/zip/id/polici/mtype/2.html
"; // 2 in 2.html is a special effect.
Echo $ url;
/* $ Tmp_arr = get_headers ($ url );
$ Len = strpos ($ tmp_arr [9], 'filename = ') + 10;
$ Filename = rtrim (substr ($ tmp_arr [9], $ len ),'"');
$ Filename = iconv ('utf-8', 'gb2312', $ filename );
$ Xxx = getFile ($ url, "E:/download/", $ filename );
Echo $ xxx ['file _ name']. '-- OK.
';*/
}

AD: truly free, domain name + VM + enterprise mailbox = 0 RMB

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.