NetCraft Uptime Graph Grabber
This code will go out to http://uptime.netcraft.com and grab the uptime graph (if there is one) for your site. Each time the graph on netcraft.com is updated, this code will update the graph that is being displayed on your local site.
AI
Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Zdrojový kód
Upload
<?php
// Enter the URL of your site below
$site = "http://www.pscode.com";
// Do not change anything below
$url = "http://uptime.netcraft.com/up/graph/?mode_u=on&mode_w=on&site=$site&submit=Examine";
$fp = show_source($url,"r");
if(ereg("/up/graphs/.*..png",$fp,$info)){
echo "<img src='http://uptime.netcraft.com$info[0]' alt='Uptime Graph'>";
} else {
echo "Your site doesn't have an uptime graph.";
}
?>
Původní komentáře (3)
Obnoveno z Wayback Machine