//请自己修正改下面变量。 $newsnum=7; $スペース=20; $width=400; $headclass="クラス5"; $ lowerclass="クラス6"; //变量设置结束。 print " $opened=$QUERY_STRING; if ($opened=="" ) { $opened="-1"; } print " $file=file('http://www.php.net'); $where=""; $a=0; while ($a$file[$a]=chop ($file[$a]); if ($file[$a]=="") { $where=$a; 休憩1; } $a++; } $file=file('http://www.php.net'); $a=$where+1; $b=0; while ($b<$newsnum) { if (substr($file[$a],0,4)=="" & substr($file[$a],-6,5)= ="" | substr($file[$a],0,4)=="" & substr($a],-7,5)=="< /h3>") { $from=$to; $to=$a; } if ($to==$a & $from!="") { $c=$from; if ($b==$opened) { while ($c<$to) { if (substr($file[$c],0,9)=="} $file[$c]=eregi_replace("src="","src="http://www.php.net/",$file[$c]); $file[$c]=eregi_replace("href="http://www.php.cn/"> $file[$c]=eregi_replace("","< ;/tr> $file[$c]=eregi_replace("< ;/h3>","<<gt;",$file[$c]); print $file[$c]; $c++; } } else { if (substr($file[$c],0,9)=="} $file[$c]=eregi_replace("src="","src="http://www.php.net/",$file[$c]); [$c]=eregi_replace("href="http://www.php.cn/"> $file[$c]=eregi_replace(""," $file[$c]=eregi_replace(" ;","",$file[$c]); print $file[ $c]; } $b++; } print "";