有PHP高手吗
我这个小偷码,错在哪里了,请指教<?php
$handle = fopen ("http://weather.cn.yahoo.com/weather.html?city=%E5%8C%97%E4%BA%AC", "rb");
$contents = "";
while (!feof($handle)) {
$contents = fread($handle, 1024);
$contents = trim($contents);
if($contents=" <!--{{start:今日 --> ") {
$start=true;
echo "ok";
}
if($start==true){
$today.=$contents;
}
if($contents==" <!--{{start:明日 --> "){
$start=false;
}
}
fclose($handle);
?> 完全看不懂
:L if($contents=" <!--{{start:今日 --> ") {
if($contents==" <!--{{start:今日 --> ") {
眼力真不错!!
原帖由 pengxing 于 2008-1-17 17:00 发表 http://www.jgwy.net/images/common/back.gifif($contents="") {
if($contents=="") {
:lol :victory: :lol :lol :lol 眼力真不错!!
页:
[1]