个人站长制做网页常用的php代码
代码如下:
$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来的
$str = file("http://tq.tom.com/china/index.html");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
$tomtq = explode("
PHP之友评论