CLASS METHODS: fetch($URI) ----------- This is the method used for fetching the contents of a web page. $URI is the fully qualified URL of the page to fetch. The results of the fetch are stored in $this->results. If you are fetching frames, then
本文实例讲述了php中Snoopy类用法。分享给大家供大家参考。具体分析如下:
这里演示了php中如何通过Snoopy抓取网页信息
snoopy类的下载地址:http://sourceforge.net/projects/snoopy/
/*
You need the snoopy.class.php from
http://snoopy.sourceforge.net/
*/
include("snoopy.class.php");
$snoopy = new Snoopy;
// need