<?
// Sample CRON job for adv_wdt class to scanning website for changes.
include 'adv_wdt.php';
$wdt = new adv_wdt;
$wdt->sql_connect ('localhost','user','password','dbname','adv_wdt'); // connect to temporary SQL table, need create first one
// $wdt -> sql_conect ('host','username','password','database','table');
// this section add any records to show how diffURLcron works. For real cron remove flush & addURL because now it's no sense.
$wdt->sql_flush(); // delete everything from temporary table - use carefull !!! we do this to prove code sample workable
$wdt->sql_addURL("http://www.google.com");
$wdt->sql_addURL("http://yahoo.com");
$wdt->sql_addURL("http://msn.com");
// finish here
$wdt->sql_diffURLcron(); // checking is active URL in table and execute diff on it
|