PHP头条
热点:

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]);

www.phpzy.comtrue/phpyy/44661.htmlTechArticlephp使用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...

相关文章

PHP之友评论

今天推荐