用于爬取一个网站上面的黄页信息 ?phperror_reporting(e_all^e_notice);$conn = @ mysql_connect(localhost, *******, ************);mysql_select_db(**********, $conn);mysql_query(set names 'utf8'); date_default_timezone_set(etc/gmt-8)
用于爬取一个网站上面的黄页信息
/','',$string); $span_2 = explode(.html,$tow_span[1]); if(count($span_2) >2 ){ $span_exp = $span_2[2]; }else{ $span_exp = $span_2[1]; } $string2 = preg_replace('//','',$span_exp); $string2 = preg_replace('//','',$string2); $string2_ok = preg_replace('/>/','',$string2 ); print $string_ok.------.$string2_ok; }*/ sleep(10);}?>