思枫 发表于 2008 年 1 月 17 日 00:04:30

有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);
?>

woria 发表于 2008 年 1 月 17 日 00:48:28

完全看不懂
:L

pengxing 发表于 2008 年 1 月 17 日 17:00:51

if($contents=" <!--{{start:今日   --> ")   {
if($contents==" <!--{{start:今日   --> ")   {

oujinjun 发表于 2008 年 1 月 17 日 17:05:29

眼力真不错!!

原帖由 pengxing 于 2008-1-17 17:00 发表 http://www.jgwy.net/images/common/back.gif
if($contents="")   {
if($contents=="")   {
:lol :victory: :lol :lol :lol 眼力真不错!!
页: [1]
查看完整版本: 有PHP高手吗