php使用file_get_contents函数抓取页面信息-PHP源码
php代码$url="http://qita.in"; $contents=@file_get_contents($url); //preg_match_all("/(.*?)/is",$contents,$content); preg_match_all("/(.*?)/is",$contents,$content); print_r($content[0]);
$url="http://qita.in"; $contents=@file_get_contents($url); //preg_match_all("/(.*?)/is",$contents,$content); preg_match_all("/(.*?)/is",$contents,$content); print_r($content[0]);
PHP之友评论