Copy code The code is as follows:
$str = file("http://tq.tom. com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $ str[$i];
}
$tomtq = explode("
",$file);
$tomtq = explode("
",$tomtq[1]);
$tomtq= $tomtq[0];
//$tomtq tom weather Thief
?>
Weather forecast code came
http://www.bkjia.com/PHPjc/317868.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317868.htmlTechArticleCopy the code as follows: ?php $str=file("http://tq.tom.com/china /index.html"); $count=count($str); for($i=0;$i$count;$i++){ $file.=$str[$i]; } $tomtq=explode(" tablewidth="774"b...