Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
51ff3226 | 2 | // include lastRSS library |
3 | include './lastRSS.php'; | |
4 | ||
5 | // create lastRSS object | |
6 | $rss = new lastRSS; | |
7 | ||
8 | // setup transparent cache | |
9 | $rss->cache_dir = './cache'; | |
10 | $rss->cache_time = 3600; // one hour | |
11 | ||
12 | // load some RSS file | |
f2e47e33 | 13 | // XXX |
51ff3226 | 14 | if ($rs = $rss->get('http://h-k.sk/scripts/google2rss.php?num=15&q=smallpox')) { |
15 | ||
16 | print_r($rs); | |
17 | } | |
18 | else { | |
19 | die ('Error: RSS file not found...'); | |
20 | } | |
21 | ||
22 | ?> | |
23 |