最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

小偷PHP+Html+緩存

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

<? 
 extract($_GET);extract($_POST); 
 $clinchurl = "http://www.haosf.com"; //目標(biāo)站 
 $url = $clinchurl.$domain; 
 $fp=@fopen($url,"r") or die("timeout");//判斷網(wǎng)頁能否打開 
 $fcontents = file_get_contents($url); 
//echo $fcontents; 
 if(eregi('傳奇服務(wù)器名</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\">傳奇服務(wù)器名</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.緩存
復(fù)制代碼 代碼如下:

<? 
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" //相應(yīng)的動態(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)容寫進(jìn)生成的HTML文件 
 fclose($handle); 
echo "done"; 

?>

相關(guān)文章

最新評論

高陵县| 新泰市| 濉溪县| 堆龙德庆县| 清苑县| 尤溪县| 黑龙江省| 岳阳市| 德昌县| 福鼎市| 苍溪县| 新晃| 德昌县| 石家庄市| 教育| 中江县| 济源市| 台湾省| 西丰县| 四川省| 依兰县| 桑植县| 拜城县| 凤台县| 元朗区| 浦北县| 大同县| 张家港市| 出国| 平泉县| 绍兴县| 湖南省| 兴山县| 德阳市| 新民市| 大洼县| 邮箱| 陈巴尔虎旗| 滦平县| 甘泉县| 赣州市|