当前位置:Gxlcms > 
PHP教程 > 
http://www.google.com.hk/小偷PHP+Html+缓存
                     
                    
                        http://www.google.com.hk/小偷PHP+Html+缓存
                        
                            时间:2021-07-01 10:21:17
                            帮助过:10人阅读
							                        
                     
                    
                    20小时读一次目标的站,可以自己修改,看下就明白怎么弄其他站了,很简单的. 
chuanqi.php //小偷
 代码如下:
  
 extract($_GET);extract($_POST);  
 $clinchurl = "http://www.haosf.com"; //目标站  
 $url = $clinchurl.$domain;  
 $fp=@fopen($url,"r") or die("timeout");//判断网页能否打开  
 $fcontents = file_get_contents($url);  
//echo $fcontents;  
 if(eregi('传奇服务器名(.*)>下一页',$fcontents,$regs))  
 {  
//上面的(.*)是你要得到的内容-列表的地方  
 $clinch = "
  
   
 传奇服务器名".$regs[1].""; | 
//把得到的内容的html补齐,自己发挥  
 }//END IF  
 $clinch=str_replace('','你自己的广告',$clinch);
 
 
 | 
//一连串的str_replace,替换掉不需要的东西,比如广告或图片  
?>  
  
include "lanmu.php"; //栏目列表  
?>  
  
//利用这个判断更新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" //相应的动态页面  
 }  
*/  
$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");//判断网页能否打开  
$fcontents = file_get_contents($url);  
$handle=fopen($path,'w'); //写入方式打开路径  
 fwrite($handle,$fcontents); //把刚才替换的内容写进生成的HTML文件  
 fclose($handle);  
echo "done";  
}  
?>
                
                
                
                    以上就介绍了http://www.google.com.hk/ 小偷PHP+Html+缓存,包括了http://www.google.com.hk/方面的内容,希望对PHP教程有兴趣的朋友有所帮助。                    
                  
	 	
                    
                    
                    
                    
                    
                
              
                    
                
                  
                    
                        
人气教程排行