Home  >  Article  >  Backend Development  >  Thief PHP+Html+caching_PHP tutorial

Thief PHP+Html+caching_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:00:50989browse

Read the target site once every 20 hours. You can modify it yourself. After reading it, you will understand how to get other sites. It is very simple.
chuanqi.php //Thief

Copy code The code is as follows:

extract($_GET);extract($_POST);
$clinchurl = "http://www.haosf. com"; //Target site
$url = $clinchurl.$domain;
$fp=@fopen($url,"r") or die("timeout");//Determine whether the web page can be opened
$fcontents = file_get_contents($url);
//echo $fcontents;
if(eregi('Legendary server name
(.*)>Next page
',$fcontents,$regs))
{
//(.*) above This is where you want to get the content - the list
$clinch = "

".$regs[1]."";
//Complete the html of the obtained content and use it yourself
}//END IF

$clinch=str_replace('','Yourself 's ads',$clinch);
//A series of str_replace to replace unnecessary things, such as ads or pictures

?>
include "lanmu. php"; //Column list
?>

//Use this judgment to update the html page


include "foot.php" ;
?>

make.php //Generate html.cache
Copy code The code is as follows:

extract($_GET);extract($_POST);

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

/*self Add a statement to judge this $url to give $file different names---------->Generate different html names
For example:

if($file="wow .html"){
//$file is passed by iframe when people visit the html page

$url="http://xxxxxx/wow.php" //Corresponding dynamic page
}
*/

$path=$file;

$cache_filetime = filemtime($path);

if (time() - $cache_filetime <= 72000) {
//** the cache is not expired
echo "There is no need to update yet";
}else{

$fp=@fopen($url, "r") or die("timeout");//Determine whether the web page can be opened
$fcontents = file_get_contents($url);
$handle=fopen($path,'w'); //Write Open the path by importing
fwrite($handle,$fcontents); //Write the replaced content into the generated HTML file
fclose($handle);
echo "done";
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317063.htmlTechArticleRead the target site once every 20 hours. You can modify it yourself. After reading it, you will understand how to make other sites. It is very simple. .chuanqi.php//The thief copy code code is as follows: ? extract($_GET);extract($_POST);...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Legendary server name