摘要: 抓取网页内容方法:$ch = @curl_init($url);@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);$text = @curl_exec($ch);@curl_close($ch);$text=relative_to_absolute($text,$url);相对路径转绝对路径方法:function relative_to_absolute($content, $feed_url) { preg_match('/(http|https|ftp):\/\//', $feed_url, $protocol); $serve 阅读全文
posted @ 2013-05-28 09:08 王 庆 阅读(1246) 评论(0) 推荐(0)