Hierarchy fixup
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / rssparse.php
diff --git a/wwwroot/inc/rssparse.php b/wwwroot/inc/rssparse.php
new file mode 100644 (file)
index 0000000..1ebb4db
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+error_reporting(0);
+// include lastRSS library
+include './lastRSS.php';
+
+// create lastRSS object
+$rss = new lastRSS;
+
+// setup transparent cache
+$rss->cache_dir = './cache';
+$rss->cache_time = 3600; // one hour
+
+// load some RSS file
+if ($rs = $rss->get('http://h-k.sk/scripts/google2rss.php?num=15&q=smallpox')) {
+
+print_r($rs);
+}
+else {
+       die ('Error: RSS file not found...');
+}
+
+?>
+
This page took 0.097611 seconds and 4 git commands to generate.