Home > php教程 > php手册 > 批量下载“素材火”网站的模板与特效...

批量下载“素材火”网站的模板与特效...

WBOY
Release: 2016-06-07 11:38:19
Original
1046 people have browsed it

批量下载“素材火”网站的模板与特效,具体操作见内容描述
<?php <br /> header('content-type:text/html;charset=gb2312');<br> <br> /*<br> 1、先生成下载链接(将此代码保存到PHP文件中并运行,将会生成下载链接)   注意URL链接最后面的1.html  2.html 3.html ... 自己可以修改测试一下,html是伪静态 <br> 2、使用迅雷,旋风等下支持批量下载的工具<br> 3、新建批量下载,复制并粘贴生成的URL链接到下载工具。全选任务并下载。等待完成即可<br> 使用PHP下载速度比较慢,建议使用下载工具。PHP下载的代码就不帖出来了。<br> */<br>  for($i=1;$i     //$url="http://www.sucaihuo.com/Download/zip/id/$i/mtype/1.html<br>"; //1.html中的1是模板<br>     $url="http://www.sucaihuo.com/Download/zip/id/$i/mtype/2.html<br>"; //2.html中的2是特效<br>     echo $url;<br>     /* $tmp_arr=get_headers($url);<br>     $len=strpos($tmp_arr[9],'filename=')+10;<br>     $filename=rtrim(substr($tmp_arr[9],$len),'"');<br>     $filename=iconv('UTF-8','GB2312',$filename);<br>     $xxx=getFile($url,"E:/download/",$filename);<br>     echo $xxx['file_name'].'--ok.<br>'; */<br> }批量下载“素材火”网站的模板与特效...

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template