$str = file("http://tq.tom.com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
$tomtq = explode("
$tomtq= $tomtq[0];
//$tomtq tom天气小偷
?>
天气预报 code来的
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
http://www.bkjia.com/PHPjc/317868.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/317868.htmlTechArticle 代码如下:?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...