欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

小偷PHP+Html+緩存

 更新時間:2006年11月25日 00:00:00   作者:  
20小時讀一次目標的站,可以自己修改,看下就明白怎么弄其他站了,很簡單的.
chuanqi.php //小偷
復制代碼 代碼如下:

<? 
 extract($_GET);extract($_POST); 
 $clinchurl = "http://www.haosf.com"; //目標站 
 $url = $clinchurl.$domain; 
 $fp=@fopen($url,"r") or die("timeout");//判斷網(wǎng)頁能否打開 
 $fcontents = file_get_contents($url); 
//echo $fcontents; 
 if(eregi('傳奇服務器名</font></b></div></td>(.*)>下一頁</a></div></td>',$fcontents,$regs)) 
 { 
//上面的(.*)是你要得到的內(nèi)容-列表的地方 
 $clinch = "<table width=\"1004\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" bgcolor=\"#CCCCCC\"> 
 <tr bgcolor=\"#990000\"> 
 <td width=\"96\"><div align=\"left\"><b><font color=\"#FFFFFF\">傳奇服務器名</font></b></div></td>".$regs[1]."</a></div></td>"; 
//把得到的內(nèi)容的html補齊,自己發(fā)揮 
 }//END IF 

 $clinch=str_replace('<td width="1002" valign="middle" align="center"><p><a ></a></p> 
 <p><a ,$clinch); 
//一連串的str_replace,替換掉不需要的東西,比如廣告或圖片 

?> 
<? 
include "lanmu.php"; //欄目列表 
?> 
<iframe width=0 height=0 frameborder=0 scrolling=no src=http://你的站.com/make.php?file=index.html ></iframe> 
//利用這個判斷更新html頁面 

<?=$clinch?> 
<? 
include "foot.php"; 
?>

make.php //生成html.緩存
復制代碼 代碼如下:

<? 
extract($_GET);extract($_POST); 

 $url="http://xxxxxxx.com/chuanqi.php"; 
 if(!$file){ $file="index.html";$url="http://xxxxxxxxxxxx.com/chuanqi.php"; } 

/*自己加判斷這個$url的語句,來賦予 $file不同的名字-----------》生成不同的html名字 
比如: 

 if($file="wow.html"){ 
//$file是在人們訪問html頁面時由iframe傳遞過來的 

 $url="http://xxxxxx/wow.php" //相應的動態(tài)頁面 
 } 
*/ 

$path=$file; 

$cache_filetime = filemtime($path); 

if (time() - $cache_filetime <= 72000) { 
//** the cache is not expire 
echo "還沒有必要更新"; 
}else{ 

$fp=@fopen($url,"r") or die("timeout");//判斷網(wǎng)頁能否打開 
$fcontents = file_get_contents($url); 
$handle=fopen($path,'w'); //寫入方式打開路徑 
 fwrite($handle,$fcontents); //把剛才替換的內(nèi)容寫進生成的HTML文件 
 fclose($handle); 
echo "done"; 

?>

相關文章

最新評論