php如何抓取网页
2015-03-01 17:40
134 查看
来自: http://www.thinkphp.cn/topic/28229.html
<?php
$url = "http://www.pc100.net";
$contents = file_get_contents($url);
//如果出现中文乱码使用下面代码
//$getcontent = iconv("gb2312", "utf-8",$contents);
echo $contents;
?>
<?php
$url = "http://www.pc100.net";
$contents = file_get_contents($url);
//如果出现中文乱码使用下面代码
//$getcontent = iconv("gb2312", "utf-8",$contents);
echo $contents;
?>
相关文章推荐
- php如何抓取网页中邮箱地址代码
- php如何抓取网页
- 使用PHP简单网页抓取和内容分析
- 如何在Firefox方便的抓取网页上的Flash
- 使用PHP的cURL库进行网页抓取
- PHP 抓取网页源文件
- C#如何抓取网页数据、分析并且去除Html标签
- 用PHP抓取网页
- PHP多进程编程(三)多进程抓取网页的演示
- 使用python写的如何自动提交和抓取网页
- 网页信息抓取-如何获取延迟加载的网页数据
- 如何抓取网页数据、分析并且去除Html标签(C#)
- php如何跨站抓取别的站点的页面的补充
- PHP抓取网页图片保存到数据库
- 使用PHP简单网页抓取和内容分析
- 使用python写的如何自动提交和抓取网页
- PHP抓取网页和分析
- 使用PHP简单网页抓取和内容分析
- php如何解析网页DOM?phpQurey给你搞定一切!
- PHP抓取网页和分析