最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
实用PHP网页抓取
时间:2008-04-24 编辑:简简单单 来源:一聚教程网
Hello World!''; ?>
sssss | ooooo |
$url = ''http://localhost/test.php''; //测试本地网页
#$url = ''http://www.myenjoylife.cn/index.php''; //抓取www.myenjoylife.cn首页内容
$lines_array = file($url);
$lines_string = implode('''', $lines_array);
eregi("(.*)", $lines_string, $head);
echo $head[0];
?>
http://blog.111com.net/hongyu6/archive/2008/03/11/2170585.aspx
-
上一个: 史上最简! IIS 下安装 PHP
-
下一个: 关于数组合并,php
相关文章
- php提取网页正文内容的例子 11-27
- php Maximum execution time of 30 seconds exceeded 网页超时的解决方法 03-21
- PHP抓取网页内容的方法 07-09
- PHP网页web颜色调配器代码 05-28
- [招聘]PHP网页设计 03-19
- 简易PHP抓网页 04-24