Thieves php+html+ Cache _php Basics

Source: Internet
Author: User
20 hours to read the goal of the station, you can modify their own, see how to get other stations, very simple.
chuanqi.php//Thieves
Copy Code code as follows:

?
Extract ($_get); extract ($_post);
$clinchurl = "http://www.haosf.com"; Target Station
$url = $clinchurl. $domain;
$fp = @fopen ($url, "R") or Die ("timeout");//To determine whether a Web page can be opened
$fcontents = file_get_contents ($url);
Echo $fcontents;
if (eregi (' Legendary server name </font></b></div></td> (. *) > Next </a></div></td> ', $ Fcontents, $regs))
{
The above (. *) is the content you want to get--a list of places
$clinch = "<table width=\" 1004\ "border=\" 0\ "align=\" Center\ "cellpadding=\" 5\ "cellspacing=\" 1\ "bgcolor=\" # Cccccc\ ">
<tr bgcolor=\ "#990000 \" >
&LT;TD width=\ "96\" ><div align=\ "left\" ><b><font color=\ "#FFFFFF \" > Legendary server name </font></b ></div></td> ". $regs [1]." </a></div></td> ";
To get the content of the HTML padded and play by yourself
}//end IF

$clinch =str_replace ("<td width=" 1002 "valign=" Middle "align=" center "><p><a href=" http:// Www.4fid.com "></a></p>
<p><a href= "http://www.agdsf.com" target= "_blank" ></a></p></td> ', ' Your own ad ', $clinch);
A chain of str_replace that replaces unwanted items, such as advertisements or pictures.

?>
?
Include "lanmu.php"; Column list
?>
<iframe width=0 height=0 frameborder=0 scrolling=no src=http://your station. com/make.php?file=index.html ></iframe >
Update HTML pages with this judgment

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

make.php//Generate HTML. Cache
Copy Code code as follows:

?
Extract ($_get); extract ($_post);

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

* * To judge this $url statement to give $file different names-----------"generate different HTML names
Like what:

if ($file = "wow.html") {
$file is passed through the IFRAME when people visit HTML pages.

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

$path = $file;

$cache _filetime = Filemtime ($path);

if (Time ()-$cache _filetime <= 72000) {
* * The cache is not expire
echo "is not yet necessary to update";
}else{

$fp = @fopen ($url, "R") or Die ("timeout");//To determine whether a Web page can be opened
$fcontents = file_get_contents ($url);
$handle =fopen ($path, ' w '); Write Way Open Path
Fwrite ($handle, $fcontents); Write what you just replaced into the generated HTML file
Fclose ($handle);
echo "Done";
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.