Proudly hosted with Dreamhost

Save $20 when signing up for Dreamhost by using the promo code amnuts20
If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh to encourage me to continue? Every little helps!
|
Web Page Update Check
This class allows you to check to see if a particular website has been updated recently. It doesn't show what the changes were, just the fact that it's been altered in some way since you last checked the site.
class.wwwcheckup.php
6.01kb in size last modified May 6, 2006 at 1:55pm 10852 views, 9998 downloads
schema.wwwcheckup.sql
439b in size last modified May 6, 2006 at 1:55pm 8362 downloads
test.wwwcheckup.php
<?php
// // test.wwwcheckup.php // // This is a document to demonstrate possible usages for the // class.wwwcheckup.php class. // // Andrew Collington, 2002 // http://www.amnuts.com/ - andy@amnuts.com //
include "class.wwwcheckup.php"; $cu = new WebsiteCheckup("demouser","demopass","websites","test");
if (isset($add)) { echo "Adding http://www.amnuts.com/index.php - ", ($cu->AddWebsite("http://www.amnuts.com/index.php")?"succesful":"failed"), "<br>\n"; echo "Adding http://amnuts.talker.com/ - ", ($cu->AddWebsite("http://amnuts.talker.com/")?"succesful":"failed"), "<br>\n"; echo "Adding http://amnuts.talker.com/cgi-bin/AMboard/UltraBoard.pl - ", ($cu->AddWebsite("http://amnuts.talker.com/cgi-bin/AMboard/UltraBoard.pl")?"succesful":"failed"), "<br>\n"; echo "Adding http://phpclasses.upperdesign.com/ - ", ($cu->AddWebsite("http://phpclasses.upperdesign.com/")?"succesful":"failed"), "<br>\n"; echo "Adding http://php.amnuts.com/forums/index.php - ", ($cu->AddWebsite("http://php.amnuts.com/forums/index.php")?"succesful":"failed"), "<br>\n"; }
if (isset($checkup)) { $cu->SetAutoUpdate(1); $cu->DisplayUpdates(); echo "<br><br>\n\n"; }
if (isset($list)) { $cu->DisplayAll(); echo "<br><br>\n\n"; }
if (isset($noupdate)) { $cu->SetAutoUpdate(0); $cu->DisplayUpdates(); echo "<br><br>\n\n"; }
echo "<hr noshade>\n"; echo "<p><a href=\"$PHP_SELF?add=1\">Add some demo sites</a></p>\n"; echo "<p><a href=\"$PHP_SELF?list=1\">List all websites (no updating)</a></p>\n"; echo "<p><a href=\"$PHP_SELF?checkup=1\">Check for updates (and make changes in database)</a></p>\n"; echo "<p><a href=\"$PHP_SELF?noupdate=1\">Check for changes (and make no changes in database)</a></p>\n";
?>
1.67kb in size last modified May 6, 2006 at 1:55pm 8726 views, 8335 downloads
|