Пример #1
0
<?php

/*
    This script should be run once per hour to refresh data. This can be done
    via crontab or by loading the page in a browser.
*/
require 'sprightly.php';
$s = new sprightly();
$s->update_data('hourly');
?>

<meta http-equiv="refresh" content="3600">
Пример #2
0
<?php

/*
    This script should be run once per minute to refresh data. This can be done
    via crontab or by loading the page in a browser.
*/
require 'sprightly.php';
$s = new sprightly();
$s->update_data('minutely');
?>

<meta http-equiv="refresh" content="60">