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