时间:2021-07-01 10:21:17 帮助过:29人阅读
"; $result=Get_news($url,$count); foreach ($result as $key => $value) { echo iconv("gb2312", "UTF-8", $value).""; ?>
";// } //print_r(Get_news($url,$count)); //echo"
http://www.bkjia.com/PHPjc/477644.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477644.htmlTechArticle?php function Get_news($url,$count) { $handle = fopen($url,r); $c = 0; while(($line = fgets($handle,1024)) ($c$count)) { //$ptr2= /a href=\\/html\/xiaonaxinwen(.*)\(.*)\/a/; $ptr= /...