龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

PHP 采集网站资源

时间:2015-04-06 11:44来源:网络整理 作者:网络 点击:
分享到:
采集网站资源 思路已经有了谁来实现下**思路已经有了谁来实现下**[代码片段(11行)]

思路已经有了谁来实现下

思路已经有了谁来实现下

$content = file_get_contents('http://www.163.com'); 
file_get_contents() 
$file = fopen("163.htm","w"); 
fwrite($file, $content);//百度首页8K 
fclose($file);
​
​如果要下载全部的东西,可以分三步实现: 
​1.file_get_contents()页面 
​2.file_get_contents() 页面包含的js,css ,
​3.copy() css中的图片
​
精彩图集

赞助商链接