采集网站资源
思路已经有了谁来实现下
思路已经有了谁来实现下
$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中的图片
- 上一篇:请问如和使用PHP将一个网页完整地保存到本地啊
- 下一篇:自己写的php压力测试工具
精彩图集
精彩文章






