andy's php projects
Script and site usage:
All of the scripts on this site are provided free for non-commercial, personal or non-profit use. If you wish to use any of these in a commercial system, please refer to the payment plan.

Support:
Support for each of the scripts is given, free of charge, on the message board. Each script has its own message board which can be accessed by clicking on the 'project forum' link (beneath the description of each project).


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!

Zend Certified Engineer logo


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 9:55pm
10095 views, 9374 downloads

schema.wwwcheckup.sql

439b in size
last modified May 6, 2006 at 9:55pm
7703 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 9:55pm
7901 views, 7703 downloads
list all projects :: this project's forum :: script in action
added Sep 19, 2002 at 3:05pm :: updated Aug 22, 2003 at 5:07pm :: 3 files :: 50716 views

© Andrew Collington, 2002-2007.