removing constants from code
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / rssparse.php
CommitLineData
51ff3226 1<?php
2error_reporting(0);
3// include lastRSS library
4include './lastRSS.php';
5
6// create lastRSS object
7$rss = new lastRSS;
8
9// setup transparent cache
10$rss->cache_dir = './cache';
11$rss->cache_time = 3600; // one hour
12
13// load some RSS file
f2e47e33 14// XXX
51ff3226 15if ($rs = $rss->get('http://h-k.sk/scripts/google2rss.php?num=15&q=smallpox')) {
16
17print_r($rs);
18}
19else {
20 die ('Error: RSS file not found...');
21}
22
23?>
24
This page took 0.189589 seconds and 4 git commands to generate.