Heim >Backend-Entwicklung >PHP-Tutorial >Abfangen von php.net-Nachrichten
//请自己修改下面变量.
$newsnum=7;
$space=20;
$width=400;
$headclass="class5";
$lowerclass="class6";
//变量设置结束.
print "
$file=file('http://www.php.net'); $where=""; $a=0; while ($a if ($file[$a]=="") { $where=$a; Pause 1; } $a++; } $file=file('http://www.php.net'); $a=$wo+1; $b=0; while ($b<$newsnum) { if (substr($file[$a],0,4)==" " & substr($file[$a],-6 ,5)=="" |. substr($file[$a],0,4)=="" ="") {$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(" "," |
$file[$c]=eregi_replace( ""," |
",$file[$c]); print $file[$c]; $c++; } } else { if (substr($file[$c],0,9)=="< img src=") { $file[$c]=""; } $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(" "," |
$file[$c]=eregi_replace(""," |
",$file[$c]); print $file[$c]; } $b++; } $a++; } print " |