首頁  >  文章  >  後端開發  >  php.net新聞攔截

php.net新聞攔截

高洛峰
高洛峰原創
2016-12-02 11:46:26849瀏覽

 
//請自己下面修改變數。 
$空間=20;
$寬度=400;
$headclass="class5"; 
$lowerclass="class6"; 
//變數設定結束。 ="" ) { $opened="-1"; } 

print "

;",$file[$c]); 
打印$file[ $c]; 

$a++; 
打印“

$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 ($bif (substr($file[$a],0,4)=="

" & substr($file[$a],-6,5)== "

" | substr($file[$a],0,4)=="

" & substr($file[$a],-7,5)=="

" ) { 
$from=$to; 
$to=$a; 


if ($to==$a & $from!="") {
$c=$from; 
if ($b==$opened) { 
while ($cif (substr($file[$c],0,9)=="php.net新聞攔截
$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]); 
印$file[$c]; 
$c++; 

} else { 
if (substr($file[$c],0,9)=="php.net新聞攔截
$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(" ;","
”; 
打印“
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn